¡@

Home 

c# Programming Glossary: myconcrete

Field Initializer in C# Class not Run when Deserializing

http://stackoverflow.com/questions/9419743/field-initializer-in-c-sharp-class-not-run-when-deserializing

constructor is also not invoked. DataContract public class MyConcrete FIELD INITIALIZER DOES NOT RUN WHEN COMMENTED IN protected readonly.. int string myDict new Dictionary int string public MyConcrete myDict new Dictionary int string private bool MyMethod int.. Call MyMethod to provoke error DataContract public class MyConcrete MyAbstract class Program static void Main string args string..