Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a background requirements that is needed for a task which seems fairly complex. I am new to this project and just got some basic understanding on what the application does. However, the background requirements has left me perplexed, so I am in need of pseudo-code examples and explanation please.

1. Add new model properties - add the new properties to the appropriate classes which derives from the "BlahBase" (base class) and its derivative "Blah2" (class).
For example add "whichCountry" to the the base class. We can check the country against the rules of the currencies or it might be IsUK or something.

I am not sure what properties to add the existing classes? Which appropriate classes derives from base class and its derivative - how do I find this? Cos some classes have :baseclass and some other classes have :derivative class. How do you put some rules to check against currencies e.g. eu, ie, gbp, nz, usa

2. All blah<t> derived classes needed their nameofmethod() extended to test the rules requested.

It would help if it can be explained in clear simple examples so picture becomes clearer. Could this be provided in a private email which I would appreciate it.

Thank You.

What I have tried:

I have gone through the application and it is fairly complex. I can see base class and the derivative class that tied up to few other classes. But I can't seem to make sense out of the requirements that has been asked.
Updated 11-Dec-21 20:34pm
Richard MacCutchan 12-Dec-21 3:21am    
Why are you not asking your teacher to explain it to you? No one here has any idea what the project is that you are supposed to use as background material.
Seuss 12-Dec-21 5:21am    
I am not a student. I am only unclear on point one because it is not quite clear. I know about model properties etc but can’t make sense of what it is being said about base class and derivatives. That is all I am asking for clarification on it to makes sense of point 1 as analogy.
Richard MacCutchan 12-Dec-21 7:12am    
OK, so ask the person who gave you the task, as they will be the one who understands both the existing project, and exactly what they want you to add to it.
[no name] 13-Dec-21 15:54pm    
If the "base class" doesn't have a "country code" or "currency code", they're telling you to add one. As for "IsUK", it could be as simple as: public bool IsUk => this.CountryCode == "UK";
Seuss 13-Dec-21 17:44pm    
Thank you, I have managed to figure out the scope of it.

It would help if it can be explained in clear simple examples so picture becomes clearer. Could this be provided in a private email which I would appreciate it.

I ran that through "Google Translate Pro+ Gold Enterprise Edition", and it came back as:
Language == "Student":
Please do this for me, so I don't have to bother learning the material.
Oh, and email it to me so my tutor won't spot that I cheated.

That isn't what we are here for.

While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]
Share this answer
If you are using Visual Studio:
You can use the Find All References command to find where particular code elements are referenced throughout your codebase. The Find All References command is available on the context (right-click) menu of the element you want to find references to.

Finding references in your code - Visual Studio (Windows) | Microsoft Docs[^]

You can use the .NET built in culture classes like RegionInfo to get the currency for a country, see: The RegionInfo class - The complete C# tutorial[^]
Share this answer
Seuss 12-Dec-21 5:25am    
Yes, Thank you. I have managed to figure out the scope of it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900