示例#1
0
 internal AbstractPartialClassIndexerCollectionWithCodeAnalysis(
     AbstractClassIndexerCollectionWithCodeAnalysis indexerCollection)
 {
     this.indexerCollection = indexerCollection;
     indexers = new WrappedCollection <AbstractClassIndexerWithCodeAnalysis, AbstractPartialClassIndexerWithCodeAnalysis>(
         indexerCollection.Indexers,
         parent => new AbstractPartialClassIndexerWithCodeAnalysis(parent),
         child => child.InternalIndexer,
         value => indexerCollection.Indexers = value);
     abstractIndexers = new WrappedCollection <AbstractIndexerWithCodeAnalysis, AbstractPartialClassAbstractIndexerWithCodeAnalysis>(
         indexerCollection.AbstractIndexers,
         parent => new AbstractPartialClassAbstractIndexerWithCodeAnalysis(parent),
         child => child.InternalIndexer,
         value => indexerCollection.AbstractIndexers = value);
 }
示例#2
0
 internal InternalAbstractTypeWithCodeAnalysis(TClass @class)
 {
     classType    = new InternalClassTypeWithCodeAnalysis <TClass>(@class);
     members      = classType.Members;
     classes      = new AbstractClassNestedClassCollectionWithCodeAnalysis(classType.Classes);
     constructors = new WrappedCollection <ClassConstructorWithCodeAnalysis, AbstractClassConstructorWithCodeAnalysis>(
         classType.Constructors,
         constructor => new AbstractClassConstructorWithCodeAnalysis(constructor),
         constructor => constructor.Constructor,
         value => classType.Constructors = value);
     conversionOperators = new WrappedCollection <ClassConversionOperatorWithCodeAnalysis, AbstractClassConversionOperatorWithCodeAnalysis>(
         classType.ConversionOperators,
         parent => new AbstractClassConversionOperatorWithCodeAnalysis(parent),
         child => child.ConversionOperator,
         value => classType.ConversionOperators = value);
     delegates = new WrappedCollection <ClassNestedDelegateWithCodeAnalysis, AbstractClassNestedDelegateWithCodeAnalysis>(
         classType.Delegates,
         parent => new AbstractClassNestedDelegateWithCodeAnalysis(parent),
         child => child.Delegate,
         value => classType.Delegates = value);
     enums = new WrappedCollection <ClassNestedEnumWithCodeAnalysis, AbstractClassNestedEnumWithCodeAnalysis>(
         classType.Enums,
         parent => new AbstractClassNestedEnumWithCodeAnalysis(parent),
         child => child.Enum,
         value => classType.Enums = value);
     events     = new InternalAbstractClassEventCollectionWithCodeAnalysis <TClass>(classType);
     fields     = new AbstractClassFieldCollectionWithCodeAnalysis(classType.Fields);
     indexers   = new InternalAbstractClassIndexerCollectionWithCodeAnalysis <TClass>(classType);
     interfaces = new WrappedCollection <ClassNestedInterfaceWithCodeAnalysis, AbstractClassNestedInterfaceWithCodeAnalysis>(
         classType.Interfaces,
         parent => new AbstractClassNestedInterfaceWithCodeAnalysis(parent),
         child => child.Interface,
         value => classType.Interfaces = value);
     methods           = new InternalAbstractClassMethodCollectionWithCodeAnalysis <TClass>(classType);
     operatorOverloads = new WrappedCollection <ClassOperatorOverloadWithCodeAnalysis, AbstractClassOperatorOverloadWithCodeAnalysis>(
         classType.OperatorOverloads,
         parent => new AbstractClassOperatorOverloadWithCodeAnalysis(parent),
         child => child.OperatorOverload,
         value => classType.OperatorOverloads = value);
     properties = new InternalAbstractClassPropertyCollectionWithCodeAnalysis <TClass>(classType);
     structs    = new AbstractClassNestedStructCollectionWithCodeAnalysis(classType.Structs);
     InitializeMembers();
 }