Пример #1
0
        private void HandleIgnoreProperties()
        {
            SectionHandler handler = new SectionHandler(reader, "IgnoreProperties");

            handler.AddMethod(new MethodMap("add", "type property", new MethodDelegate(AddIgnoreProperty)));
            handler.Process();
        }
Пример #2
0
        /// <summary>
        /// Handles the configuration of Type Converters factories for the TypeConverterFactories node
        /// </summary>
        private void HandleCollectionHandlers()
        {
            SectionHandler handler = new SectionHandler(reader, "CollectionHandlers");

            handler.AddMethod(new MethodMap("add", "type", new MethodDelegate(AddCollectionHandler)));
            handler.Process();
        }
Пример #3
0
        /// <summary>
        /// Handles the configuration of Type Converters for the TypeConverters node
        /// </summary>
        private void HandleTypeConverters()
        {
            SectionHandler handler = new SectionHandler(reader, "TypeConverters");

            handler.AddMethod(new MethodMap("add", "type property converter", new MethodDelegate(AddTypeConverter)));
            handler.Process();
        }
Пример #4
0
        /// <summary>
        /// Handles the "TypeBindings" tag of the config
        /// </summary>
        private void HandleTypeBindings()
        {
            SectionHandler handler = new SectionHandler(reader, "TypeBindings");

            handler.AddMethod(new MethodMap("add", "alias type", new MethodDelegate(AddTypeBinding)));
            handler.AddMethod(new MethodMap("remove", "alias type", new MethodDelegate(RemoveTypeBinding)));
            handler.AddMethod(new MethodMap("clear", "", delegate(string t, string[] v) { context.TypeAliases.Clear(); }));
            handler.Process();
        }
Пример #5
0
 /// <summary>
 /// Handles the configuration of Type Converters for the TypeConverters node
 /// </summary>
 private void HandleTypeConverters()
 {
     SectionHandler handler = new SectionHandler(reader, "TypeConverters");
     handler.AddMethod(new MethodMap("add", "type property converter", new MethodDelegate(AddTypeConverter)));
     handler.Process();
 }
Пример #6
0
 /// <summary>
 /// Handles the "TypeBindings" tag of the config
 /// </summary>
 private void HandleTypeBindings()
 {
     SectionHandler handler = new SectionHandler(reader, "TypeBindings");
     handler.AddMethod(new MethodMap("add", "alias type", new MethodDelegate(AddTypeBinding)));
     handler.AddMethod(new MethodMap("remove", "alias type", new MethodDelegate(RemoveTypeBinding)));
     handler.AddMethod(new MethodMap("clear", "", delegate(string t, string[] v) { context.TypeAliases.Clear(); }));
     handler.Process();
 }
Пример #7
0
 private void HandleIgnoreProperties()
 {
     SectionHandler handler = new SectionHandler(reader, "IgnoreProperties");
     handler.AddMethod(new MethodMap("add", "type property", new MethodDelegate(AddIgnoreProperty)));
     handler.Process();
 }
Пример #8
0
 /// <summary>
 /// Handles the configuration of Type Converters factories for the TypeConverterFactories node
 /// </summary>
 private void HandleCollectionHandlers()
 {
     SectionHandler handler = new SectionHandler(reader, "CollectionHandlers");
     handler.AddMethod(new MethodMap("add", "type", new MethodDelegate(AddCollectionHandler)));
     handler.Process();
 }