protected override void FreezeInternal()
 {
     base.FreezeInternal();
     baseTypes      = FreezableHelper.FreezeList(baseTypes);
     typeParameters = FreezableHelper.FreezeListAndElements(typeParameters);
     nestedTypes    = FreezableHelper.FreezeListAndElements(nestedTypes);
     members        = FreezableHelper.FreezeListAndElements(members);
 }
 protected override void FreezeInternal()
 {
     base.FreezeInternal();
     constructorParameterTypes = FreezableHelper.FreezeList(constructorParameterTypes);
     positionalArguments       = FreezableHelper.FreezeListAndElements(positionalArguments);
     namedArguments            = FreezableHelper.FreezeList(namedArguments);
     foreach (var pair in namedArguments)
     {
         FreezableHelper.Freeze(pair.Key);
         FreezableHelper.Freeze(pair.Value);
     }
 }
Esempio n. 3
0
 protected override void FreezeInternal()
 {
     base.FreezeInternal();
     interfaceImplementations = FreezableHelper.FreezeList(interfaceImplementations);
 }
 protected virtual void FreezeInternal()
 {
     attributes  = FreezableHelper.FreezeListAndElements(attributes);
     constraints = FreezableHelper.FreezeList(constraints);
 }