internal GeneratorManager(ExportContext context) { _defaultGenerators[MemberTypes.Property] = new PropertyCodeGenerator { Context = context }; _defaultGenerators[MemberTypes.Field] = new FieldCodeGenerator { Context = context }; _defaultGenerators[MemberTypes.Method] = new MethodCodeGenerator { Context = context }; _defaultGenerators[MemberTypes.Constructor] = new ConstructorCodeGenerator { Context = context }; _defaultParameterGenerator = new ParameterCodeGenerator { Context = context }; _defaultClassGenerator = new ClassCodeGenerator { Context = context }; _defaultInterfaceGenerator = new InterfaceCodeGenerator { Context = context }; _defaultEnumGenerator = new EnumGenerator { Context = context }; _defaultNsgenerator = new NamespaceCodeGenerator { Context = context }; _context = context; }
/// <summary> /// Constructs new type resolver /// </summary> public TypeResolver(ExportSettings settings) { _defaultGenerators[MemberTypes.Property] = new PropertyCodeGenerator { Settings = settings }; _defaultGenerators[MemberTypes.Field] = new FieldCodeGenerator { Settings = settings }; _defaultGenerators[MemberTypes.Method] = new MethodCodeGenerator { Settings = settings }; _defaultGenerators[MemberTypes.Constructor] = new ConstructorCodeGenerator { Settings = settings }; _defaultParameterGenerator = new ParameterCodeGenerator { Settings = settings }; _defaultClassGenerator = new ClassCodeGenerator { Settings = settings }; _defaultInterfaceGenerator = new InterfaceCodeGenerator { Settings = settings }; _defaultEnumGenerator = new EnumGenerator { Settings = settings }; _defaultNsgenerator = new NamespaceCodeGenerator { Settings = settings }; _settings = settings; }