Hi Yves,
The InitialValue is a particular beast for primitive types.
I encourage you to look at the IL created for your C# code in ildasm,
you'll get a class constructor initializing the field with a string,
like this:
MyClass::.cctor
{
ldstr "The Field Value"
stsfld MyClass.MyString
}
You just need to recreate this.
Jb
> --
> --
> --
> mono-cecil
> ---
> You received this message because you are subscribed to the Google Groups
> "mono-cecil" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
mono-cecil+...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.