Britto.S.V

Hi,
What is the equvalent namespace for "Java.Utils.Regex.Pattern " in Windows C#.
Please answer me as soon as possible.

Regards


Re: Visual C# Language Java to C#

TaylorMichaelL

I've never heard of that namespace but since it seems to be related to regular expressions then the .NET equivalent would be System.Text.RegularExpressions.

Michael Taylor - 10/15/07

http://p3net.mvps.org





Re: Visual C# Language Java to C#

Britto.S.V

hi,
its right, thankyou so much




Re: Visual C# Language Java to C#

Britto.S.V

Hi,
What is the equivalent of "Java.Lang.ClassLoader" Class in C#
Please answer me anyone....

Regards





Re: Visual C# Language Java to C#

TaylorMichaelL

There is no equivalent per se. .NET handles class loading automatically for you. You can't really override the behavior too much. Internally when you use a type for the first time the CLR loads the asembly that owns type if it has not yet been loaded. It then locates the type within the assembly and loads it. During this timeframe the framework does quite a bit of work to prepare the type for usage including JITting it to native code. What method(s) get JITted are up to the CLR as it can optimize things.

The System.Reflection.Assembly and System.Type classes are ultimately available to you to load and enumerate assemblies and types. Neither are extensible. You can however handle the event (raised by the app domain) when assembly resolution fails. This is your one and only chance to load an assembly outside the normal flow of things.

BTW if you are trying to convert a Java program to C# you could try the Java to C# conversion tool that ships with VS2005. It might not get everything but it might help with some of the conversion.

Michael Taylor - 10/17/07

http://p3net.mvps.org