public void RunRules(INameIterator nameIterator, List <SkipNamespace> skipNamespaces, List <SkipType> skipTypes, List <SkipMethod> skipMethods, List <SkipField> skipFields, List <SkipProperty> skipProperties) { nameIterator.Reset(); var iSkipMethods = new List <ISkipMethod>(skipMethods); iSkipMethods.AddRange(skipNamespaces); iSkipMethods.AddRange(skipTypes); var iSkipProperties = new List <ISkipProperty>(skipProperties); iSkipProperties.AddRange(skipNamespaces); iSkipProperties.AddRange(skipTypes); var iSkipFields = new List <ISkipField>(skipFields); iSkipFields.AddRange(skipNamespaces); iSkipFields.AddRange(skipTypes); foreach (var field in fields.Values) { field.ChangeName(nameIterator.Next(), iSkipFields.ToArray()); } nameIterator.Reset(); foreach (var prop in properties.Values) { prop.ChangeName(nameIterator.Next(), iSkipProperties.ToArray()); } nameIterator.Reset(); foreach (var method in methods.Values) { method.ChangeName(nameIterator.Next(), iSkipMethods.ToArray()); } }
public void RunRules(INameIterator nameIterator) { foreach (var nmspace in namespaces.Values) { nmspace.RunRules(nameIterator, SkipNamespaces, SkipTypes, SkipMethods, SkipFields, SkipProperties); } nameIterator.Reset(); foreach (var nmspace in namespaces.Values) { nmspace.ChangeName(nameIterator.Next(), SkipNamespaces.ToArray()); } }
public void RunRules(INameIterator nameIterator, List <SkipNamespace> skipNamespaces, List <SkipType> skipTypes, List <SkipMethod> skipMethods, List <SkipField> skipFields, List <SkipProperty> skipProperties) { foreach (var type in types.Values) { type.RunRules(nameIterator, skipNamespaces, skipTypes, skipMethods, skipFields, skipProperties); } nameIterator.Reset(); var iSkipTypes = new List <ISkipType>(skipTypes); iSkipTypes.AddRange(skipNamespaces); foreach (var type in types.Values) { type.ChangeName(nameIterator.Next(), iSkipTypes.ToArray()); } }