The Silverlight 2 and Silverlight 3 Beta framework do not support compiled Regular Expressions i.e:
RegexOptions.Compiled
I'd be interested to hear the reasoning behind why this is the case if possible.
The Silverlight 2 and Silverlight 3 Beta framework do not support compiled Regular Expressions i.e:
RegexOptions.Compiled
I'd be interested to hear the reasoning behind why this is the case if possible.
I just went through the new Silverlight 3.0 help files looking and they still have the same message:
The implementation of the regular expression engine in the .NET Framework for Silverlight is identical to that in the .NET Framework. The single exception is that the .NET Framework for Silverlight does not support compiled regular expressions, which are predefined regular expression patterns that are stored in stand-alone assemblies together with dedicated regular expression engines that process text using those regular expression patterns.
I suppose they may have forgotten to update the help file, but I haven't heard any work in the blogs to suggest otherwise.
I guess it comes down to same reason for many design decisions in Silverlight - that it was a framework feature that didn't survive cost/benefit analysis; whether the benefit of having the feature was worth the additional size of the core download.
Since silverlight is cross platform, there is no guarantee that the application will be able to create a separate assembly either permissions wise, or capability wise on the executing machine.