[Mono-dev] [PATCH] Implement support for compiled regular expressions in profile 1.x
kornelpal at gmail.com
Fri Apr 3 16:30:45 EDT 2009
The runtime has support for generic types in profile 1.0 as well,
OnDeserializedAttribute could also be used, just like new case
insensitive and culture invariant string operations/comparison, static
classes could be supported by profile 1.0 C# compiler because no runtime
support is needed, and this is just some examples of possible 2.0 suff
for internal use in 1.0 class library.
As far as I know none of them or any other 2.0 features are used outside
Also note that this is a complete patch including replacing the generic
Dictionaries with non-generic Hashtables.
Attached a more recent version of the patch with some minor updates.
Rodrigo Kumpera wrote:
> I think a better approach instead of using dynamic assemblies is to use
> dynamic methods on 1.0 as well.
> They can be exposed as internal stuff from mscorlib to System and most
> of the work will replacing the generic
> 2009/4/2 Kornél Pál <kornelpal at gmail.com <mailto:kornelpal at gmail.com>>
> Because of the restrictions of 1.x I modified visibility so I also would
> like to set skipVisibility = false in DynamicMethod constructor (not
> included in the patch) to avoid 1.x only bugs because of this.
> Kornél Pál wrote:
> > Hi,
> > I've implement support for compiled regular expressions in
> profile 1.x
> > using dynamic assemblies.
> > I also have cleaned up the code by removing GetEvalMethod and
> > CreateEvalMethod methods and moving their functionality to
> > GetMachineFactory.
> > I also modified the signature of EmitEvalMethodBody and replaced
> > dictionaries with hashtables in profile 1.x that results in a larger
> > patch but I haven't modify the actual code generator.
> > I also had to modify some visibility levels to pass runtime type
> > Please review the attached patch.
> > Kornél
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> <mailto:Mono-devel-list at lists.ximian.com>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Mono-devel-list