Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to reference control in UC from page?
Message
 
 
To
10/04/2006 17:54:54
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01111711
Message ID:
01112210
Views:
16
Bonnie,

I understand the purpose of a Property. You know, I was just typing you a long reply of what I didn't understand and as I was trying to explain, I finally got it (I think <g>).

Here is what I misunderstood before and do now. I was not understanding the use of private string m_MyProperty. And I know I see that it (the property m_MyProperty) holds the value used by my class. The property MyProperty is simply a way to pass the value to m_MyProperty and get it back to the outside world. Am I correct in understanding it?

Thank you.

>Dmitry,
>
>Sometimes it is sufficient simply to have a public field, but this doesn't always work for everything.
>
>The Get/Set methods are basically what makes it a Property. In order for stuff to show up on Property Sheets, they need to be specifically defined as a Property. Some other things also require Properties (DataBinding in WinForms is one good example).
>
>private string m_MyProperty;
>
>public string MyProperty
>{
>  get {return this.m_MyProperty;}
>  set {this.m_MyProperty = value;}
>}
>
>Your book will probably do a better job of explaining Properties <g> but I thought I'd just give you a brief description anyway.
>
>~~Bonnie
>
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform