c# - Extending the String Class With Properties? -


I have an application where I need to populate a textbox with the name of a company and I have all available A custom AutoCaplet string is filled with Koala. The name of the company from the database when a user enters, by selecting the company name and selecting a new company name from the list, I need the selected company ID (Gaid) I I can do a lookup company I could get the rest of the information. Because the company's name is not guaranteed to be unique, so I can not search on the name and hopefully this is the correct record. I saw to expand the string class, but all I can find are examples which add methods. I have tried that by adding a variable to add the id to get the id and set the ID, but when retrieving the id it is always the last id set whether any asset can be added to one category? I have already changed that what I was trying to do to do a search on the company name and if multiple matches are returned, then the user will display a list, but I would still like to know whether I It can be added in the property in such a way that it comes again.

No, you can not raise classes with properties Additionally, string Is sealed so that you can not extend from inheriting. The only support structure is: encapsulate string in your own class.


Comments