None static function

0 views
Skip to first unread message

K1

unread,
Nov 22, 2009, 3:17:09 PM11/22/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi,

how can I call none-static C# function in static function?

Is there any body help me?

Processor Devil

unread,
Nov 23, 2009, 4:30:55 AM11/23/09
to dotnetde...@googlegroups.com
yes, you can :).
Just make instance of the class which non-static functions you want to call.
It is the best deal within the keyword "using".

2009/11/22 K1 <ozzyf...@gmail.com>

Cerebrus

unread,
Nov 23, 2009, 12:36:51 AM11/23/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
"None" !

Cerebrus

unread,
Nov 23, 2009, 7:45:17 AM11/23/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
No, I think you misunderstood the question. ;-)

Processor Devil

unread,
Nov 23, 2009, 11:28:55 AM11/23/09
to dotnetde...@googlegroups.com
well, you mean the question "is there any body help me?" or "how can I call ..."?
true is that my "solution" works just in managed environment, if you wanted to call c# non-static function in non-managed static function, you would need to create another c# static function which would call the non-static function and make it COM visible...

2009/11/23 Cerebrus <zor...@sify.com>
Reply all
Reply to author
Forward
0 new messages