How to Access a property of a class from another class
-
Dear all, Im using a class named Events where i have some property like CLass Events { private string _EvDate; public string EvDate { get{ return _EvDate }set { _EvDate = value;} } } I have one more class as below Class EventProp { private string _TZid; then get set } Requirement is EvDate has attributes such as TZID, So i want to set the attribute value from the Events, that is EvDate.Tzid = some vlaue from some function(); Please help me out to solve this problem.Thank you in advance for the solution for my problem. Regards Mukil
-
Dear all, Im using a class named Events where i have some property like CLass Events { private string _EvDate; public string EvDate { get{ return _EvDate }set { _EvDate = value;} } } I have one more class as below Class EventProp { private string _TZid; then get set } Requirement is EvDate has attributes such as TZID, So i want to set the attribute value from the Events, that is EvDate.Tzid = some vlaue from some function(); Please help me out to solve this problem.Thank you in advance for the solution for my problem. Regards Mukil
I am sorry, but EvDate itself is an attribute of the Events class how can u create an attribute for it? u can set a value to EvDate by creating an object of the events class Events ev = new Events(); ev.EvDate = Some value from some function(); regards, Pramod
-
I am sorry, but EvDate itself is an attribute of the Events class how can u create an attribute for it? u can set a value to EvDate by creating an object of the events class Events ev = new Events(); ev.EvDate = Some value from some function(); regards, Pramod