why we using properties
-
Hello,
asif_aslam wrote:
why we using properties
As this question is not very clever asked, you will only get useless answers. So try to make a full question, like: Why should we use properties instead of methods (getmethod and setmethod)? Or is it something else you meant? All the best, Martin
-
One of the definitions of Property is: a piece of land or real estate I gave a reply in the manor the question was asked which was; lacking context and with minimal effort spent. In simple terms, when asking a question try to give as much detail as you can and put a bit of effort into it to show that you have atleast tried to find the answer on google or whatever your favorite search engine is.
-
Think about properties as about smart fields. They can do checks for correct input, work with some cache etc... Under the hood, properties are just "syntactic sugar", language feature allowing two methods with get value/ set value sematics look like a field.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
-
One of the definitions of Property is: a piece of land or real estate I gave a reply in the manor the question was asked which was; lacking context and with minimal effort spent. In simple terms, when asking a question try to give as much detail as you can and put a bit of effort into it to show that you have atleast tried to find the answer on google or whatever your favorite search engine is.
-
Because we Americans (well, United Statesians, no offense intended toward our neighbors) tend to be rabid possessive consumers. -- modified at 15:19 Thursday 21st June, 2007 Oh, and... Because we're not pinko commies!
-
Because we Americans (well, United Statesians, no offense intended toward our neighbors) tend to be rabid possessive consumers. -- modified at 15:19 Thursday 21st June, 2007 Oh, and... Because we're not pinko commies!
I must admit that my english (or maybe slang) is too bad to understand that. But I'm curious, and would like to get the joke (I guess). I also know that it might not be funny any more, if you have to explain it with other words, but give it a try please. All the best, Martin
-
I must admit that my english (or maybe slang) is too bad to understand that. But I'm curious, and would like to get the joke (I guess). I also know that it might not be funny any more, if you have to explain it with other words, but give it a try please. All the best, Martin
Which part?
-
Which part?
-
string TextIDidNotUnderstand = YourText.Remove("Because we"); :-D I would really need a conversion of the whole text I think! Thanks Martin
Not worth the trouble... move along... move along...