• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

C# Class Method

If I have a (C# VS2008) class (object) with fields and methods (A), and those method instanciate another object (B) which has fields and methods ... how do I reference the (A) fields/methods from within a (B) method? And what if a method in the (B) object instanciates another object (C) and wants to reference the (A) object fields/methods ... what is the proper syntax?
0
mmexchange
Asked:
mmexchange
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
you will have to pass the object (A) itself to the method (or a property) of (B) and (C) respectively.
you cannot access another object without "knowing" it.
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now