public AbstractClassFieldCollectionWithCodeAnalysis(ClassFieldCollectionWithCodeAnalysis fieldCollection) { constants = new WrappedCollection <ClassConstantWithCodeAnalysis, AbstractClassConstantWithCodeAnalysis>( fieldCollection.Constants, parent => new AbstractClassConstantWithCodeAnalysis(parent), child => child.Constant, value => fieldCollection.Constants = value); fields = new WrappedCollection <ClassFieldWithCodeAnalysis, AbstractClassFieldWithCodeAnalysis>( fieldCollection.Fields, parent => new AbstractClassFieldWithCodeAnalysis(parent), child => child.InternalField, value => fieldCollection.Fields = value); }
public SealedClassFieldCollectionWithCodeAnalysis(ClassFieldCollectionWithCodeAnalysis fieldCollection) { constants = new WrappedCollection <ClassConstantWithCodeAnalysis, SealedClassConstantWithCodeAnalysis>( fieldCollection.Constants, parent => new SealedClassConstantWithCodeAnalysis(parent), child => child.Constant, value => fieldCollection.Constants = value); fields = new WrappedCollection <ClassFieldWithCodeAnalysis, SealedClassFieldWithCodeAnalysis>( fieldCollection.Fields, parent => new SealedClassFieldWithCodeAnalysis(parent), child => child.Field, value => fieldCollection.Fields = value); }