hi
what about this :unsure:
Class A
{
....
Class B clsb = New Class B( *this *);
clsb.DoSomething(int a, int b)
}
Class B
{
*
A _a ;
public B ( A a) { _a = a ; } *
public void DoSomething(int a, int b)
{
....
//I want to be able to reference to the loaded instance of the
Class A. (not a new instance)
}
}
On Wed, Mar 30, 2011 at 5:14 AM, Learner <[email protected]> wrote:
> Hi,
>
> I have two classes say Class A and Class B. I am trying to find how
> do I get reference of Class A in Class B.
>
> I do not want to get a new instance of Class A. I want to be able to
> reference to the loaded instance.
>
> Class A
> {
> ....
> Class B clsb = New Class B();
> clsb.DoSomething(int a, int b)
> }
>
>
> Class B
> {
> ...
> public void DoSomething(int a, int b)
> {
> ....
> //I want to be able to reference to the loaded instance of the
> Class A. (not a new instance)
> }
> }
>
> Can some one please help me with this.
>
> Thanks,
> L
>
> --
> You received this message because you are subscribed to the Google
> Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
> Web Services,.NET Remoting" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
> or visit the group website at http://megasolutions.net
>
--
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net