Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 public ResolverConfig()
 {
     Components = new ComponentConfig();
     Components.Add <IMetadataFactory, MetadataFactory>();
     Components.Add <IMissingHandler, SelfMissingHandler>();
     Components.Add <IMissingHandler, OpenGenericMissingHandler>();
     Components.Add <SingletonScopeStorage>();
 }
Ejemplo n.º 2
0
        //--------------------------------------------------------------------------------
        // Constructor
        //--------------------------------------------------------------------------------

        private static ComponentConfig CreateDefaultComponents()
        {
            var components = new ComponentConfig();

            components.Add <IObjectConverter>(ObjectConverter.Default);
            components.Add <IPropertySelector>(DefaultPropertySelector.Instance);
            components.Add <IEmptyDialect, EmptyDialect>();
            return(components);
        }
Ejemplo n.º 3
0
        public MapperFactoryConfig()
        {
            config.Add <IDelegateFactory>(DelegateFactory.Default);

            this.DefaultDelimiter(0x0D, 0x0A);
            this.DefaultEncoding(Encoding.ASCII);
            this.DefaultTrim(true);
            this.DefaultTextPadding(Padding.Right);
            this.DefaultFiller(0x20);
            this.DefaultTextFiller(0x20);
            this.DefaultEndian(Endian.Big);
            this.DefaultDateTimeKind(DateTimeKind.Unspecified);
            this.DefaultTrueValue(0x31);
            this.DefaultFalseValue(0x30);

            this.DefaultDateTimeTextEncoding(Encoding.ASCII);
            this.DefaultDateTimeTextProvider(CultureInfo.InvariantCulture);
            this.DefaultDateTimeTextStyle(DateTimeStyles.None);

            this.DefaultNumberTextEncoding(Encoding.ASCII);
            this.DefaultNumberTextProvider(CultureInfo.InvariantCulture);
            this.DefaultNumberTextNumberStyle(NumberStyles.Integer);
            this.DefaultNumberTextDecimalStyle(NumberStyles.Number);
            this.DefaultNumberTextPadding(Padding.Left);
            this.DefaultNumberTextFiller(0x20);
        }