internal SealedPartialClassEventCollectionWithCodeAnalysis( SealedClassEventCollectionWithCodeAnalysis eventCollection) { this.eventCollection = eventCollection; events = new WrappedCollection <SealedClassEventWithCodeAnalysis, SealedPartialClassEventWithCodeAnalysis>( eventCollection.Events, parent => new SealedPartialClassEventWithCodeAnalysis(parent), child => child.Event, value => eventCollection.Events = value); eventProperties = new WrappedCollection <SealedClassEventPropertyWithCodeAnalysis, SealedPartialClassEventPropertyWithCodeAnalysis>( eventCollection.EventProperties, parent => new SealedPartialClassEventPropertyWithCodeAnalysis(parent), child => child.EventProperty, value => eventCollection.EventProperties = value); }
internal InternalSealedTypeWithCodeAnalysis(TClass @class) { classType = new InternalClassTypeWithCodeAnalysis <TClass>(@class); members = classType.Members; classes = new SealedClassNestedClassCollectionWithCodeAnalysis(classType.Classes); constructors = new WrappedCollection <ClassConstructorWithCodeAnalysis, SealedClassConstructorWithCodeAnalysis>( classType.Constructors, constructor => new SealedClassConstructorWithCodeAnalysis(constructor), constructor => constructor.Constructor, value => classType.Constructors = value); conversionOperators = new WrappedCollection <ClassConversionOperatorWithCodeAnalysis, SealedClassConversionOperatorWithCodeAnalysis>( classType.ConversionOperators, parent => new SealedClassConversionOperatorWithCodeAnalysis(parent), child => child.ConversionOperator, value => classType.ConversionOperators = value); delegates = new WrappedCollection <ClassNestedDelegateWithCodeAnalysis, SealedClassNestedDelegateWithCodeAnalysis>( classType.Delegates, parent => new SealedClassNestedDelegateWithCodeAnalysis(parent), child => child.Delegate, value => classType.Delegates = value); enums = new WrappedCollection <ClassNestedEnumWithCodeAnalysis, SealedClassNestedEnumWithCodeAnalysis>( classType.Enums, parent => new SealedClassNestedEnumWithCodeAnalysis(parent), child => child.Enum, value => classType.Enums = value); events = new InternalSealedClassEventCollectionWithCodeAnalysis <TClass>(classType); fields = new SealedClassFieldCollectionWithCodeAnalysis(classType.Fields); indexers = new InternalSealedClassIndexerCollectionWithCodeAnalysis <TClass>(classType); interfaces = new WrappedCollection <ClassNestedInterfaceWithCodeAnalysis, SealedClassNestedInterfaceWithCodeAnalysis>( classType.Interfaces, parent => new SealedClassNestedInterfaceWithCodeAnalysis(parent), child => child.Interface, value => classType.Interfaces = value); methods = new InternalSealedClassMethodCollectionWithCodeAnalysis <TClass>(classType); operatorOverloads = new WrappedCollection <ClassOperatorOverloadWithCodeAnalysis, SealedClassOperatorOverloadWithCodeAnalysis>( classType.OperatorOverloads, parent => new SealedClassOperatorOverloadWithCodeAnalysis(parent), child => child.OperatorOverload, value => classType.OperatorOverloads = value); properties = new InternalSealedClassPropertyCollectionWithCodeAnalysis <TClass>(classType); structs = new SealedClassNestedStructCollectionWithCodeAnalysis(classType.Structs); InitializeMembers(); }