Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #27.9K
~726 People Reached
Favorite Forums
Hi all experts ... I have a question .... How can i call a function of Class A from Class B without creating any objects,static menthds or using any inheritance.. like if class A has a variable of classB then classB can call a method of class A.... explanatory code: … |
|
class Program { static int localVariable = 0; static int PropertyOne { get { return localVariable; } } static void set_PropertyOne(int newValue) { localVariable = newValue; } static void Main(string[] args) { } } **Error: already defines a member called 'set_PropertyOne' with the same parameter type** please give me reason … |