Exemplo n.º 1
0
 /// <summary>
 /// Checks the initialization status of the <see cref="Fields"/>
 /// associated to the <see cref="AssemblyBase"/>.
 /// </summary>
 internal void CheckFields()
 {
     lock (this.SyncObject)
         if (this.fields == null)
         {
             if (this.IsDisposed)
             {
                 throw new InvalidOperationException(Resources.ObjectStateThrowMessage);
             }
             this.fields = this.InitializeFields();
         }
 }
Exemplo n.º 2
0
 protected _FieldMembersBase(_FullMembersBase master, IFieldMemberDictionary <TField, TFieldParent> originalSet, TFieldParent parent)
     : base(master, originalSet, parent)
 {
 }
Exemplo n.º 3
0
 internal _FieldMembersBase(_FullMembersBase master, IFieldMemberDictionary <IClassFieldMember, IClassType> originalSet, _ClassTypeBase parent)
     : base(master, originalSet, parent)
 {
 }
Exemplo n.º 4
0
 internal _FieldMembersBase(_FullMembersBase master, IFieldMemberDictionary <IStructFieldMember, IStructType> originalSet, _StructTypeBase parent)
     : base(master, originalSet, parent)
 {
 }
Exemplo n.º 5
0
 internal FieldMemberDictionary(_FullMembersBase master, IFieldMemberDictionary <IEnumFieldMember, IEnumType> original, _EnumTypeBase parent)
     : base(master, original, parent)
 {
 }
Exemplo n.º 6
0
 public override void Dispose()
 {
     if (this.IsDisposed)
     {
         return;
     }
     try
     {
         lock (SyncObject)
         {
             if (this.classes != null)
             {
                 this.classes.Dispose();
                 this.classes = null;
             }
             if (this.delegates != null)
             {
                 this.delegates.Dispose();
                 this.delegates = null;
             }
             if (this.enums != null)
             {
                 this.enums.Dispose();
                 this.enums = null;
             }
             if (this.interfaces != null)
             {
                 this.interfaces.Dispose();
                 this.interfaces = null;
             }
             if (this.structs != null)
             {
                 this.structs.Dispose();
                 this.structs = null;
             }
             if (this.types != null)
             {
                 this.types = null;
             }
             if (this.binaryOperatorCoercions != null)
             {
                 this.binaryOperatorCoercions.Dispose();
                 this.binaryOperatorCoercions = null;
             }
             if (this.typeInitializer != null)
             {
                 this.typeInitializer.Dispose();
                 this.typeInitializer = null;
             }
             if (this.constructors != null)
             {
                 this.constructors.Dispose();
                 this.constructors = null;
             }
             if (this.methods != null)
             {
                 this.methods.Dispose();
                 this.methods = null;
             }
             if (this.events != null)
             {
                 this.events.Dispose();
                 this.events = null;
             }
             if (this.fields != null)
             {
                 this.fields.Dispose();
                 this.fields = null;
             }
             if (this.indexers != null)
             {
                 this.indexers.Dispose();
                 this.indexers = null;
             }
             if (this.properties != null)
             {
                 this.properties.Dispose();
                 this.properties = null;
             }
             if (this.typeCoercions != null)
             {
                 this.typeCoercions.Dispose();
                 this.typeCoercions = null;
             }
             if (this.unaryOperatorCoercions != null)
             {
                 this.unaryOperatorCoercions.Dispose();
                 this.unaryOperatorCoercions = null;
             }
             if (this._members != null)
             {
                 this._members = null;
             }
             fullTypesChecked = true;
         }
     }
     finally
     {
         base.Dispose();
     }
 }