Exemplo n.º 1
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();
 }
 internal AbstractPartialClassEventCollectionWithCodeAnalysis(
     AbstractClassEventCollectionWithCodeAnalysis eventCollection)
 {
     this.eventCollection = eventCollection;
     events = new WrappedCollection <AbstractClassEventWithCodeAnalysis, AbstractPartialClassEventWithCodeAnalysis>(
         eventCollection.Events,
         parent => new AbstractPartialClassEventWithCodeAnalysis(parent),
         child => child.InternalEvent,
         value => eventCollection.Events = value);
     eventProperties = new WrappedCollection <AbstractClassEventPropertyWithCodeAnalysis, AbstractPartialClassEventPropertyWithCodeAnalysis>(
         eventCollection.EventProperties,
         parent => new AbstractPartialClassEventPropertyWithCodeAnalysis(parent),
         child => child.InternalEventProperty,
         value => eventCollection.EventProperties = value);
     abstractEvents = new WrappedCollection <AbstractEventWithCodeAnalysis, AbstractPartialClassAbstractEventWithCodeAnalysis>(
         eventCollection.AbstractEvents,
         parent => new AbstractPartialClassAbstractEventWithCodeAnalysis(parent),
         child => child.InternalEvent,
         value => eventCollection.AbstractEvents = value);
 }