예제 #1
0
        public override void Register(IXmlContextData context)
        {
            context.RegisterConverter(__guidType, this);
            context.RegisterAlias("Guid", __guidType);

            context.RegisterConverter(__nguidType, this);
            context.RegisterAlias("NullableGuid", __nguidType);
        }
        public override void Register(IXmlContextData context)
        {
            context.RegisterConverter(__timeSpanType, this);
            context.RegisterAlias("TimeSpan", __timeSpanType);

            context.RegisterConverter(__ntimeSpanType, this);
            context.RegisterAlias("NullableTimeSpan", __ntimeSpanType);
        }
예제 #3
0
        public override void Register(IXmlContextData context)
        {
            context.RegisterConverter(__dateTimeType, this);
            context.RegisterAlias("DateTime", __dateTimeType);

            context.RegisterConverter(__dateTimeOffsetType, this);
            context.RegisterAlias("DateTimeOffset", __dateTimeOffsetType);

            context.RegisterConverter(__nullableDateTimeType, this);
            context.RegisterAlias("NullableDateTime", __nullableDateTimeType);

            context.RegisterConverter(__nullableDateTimeOffsetType, this);
            context.RegisterAlias("NullableDateTimeOffset", __nullableDateTimeOffsetType);
        }
        public override void Register(IXmlContextData context)
        {
            context.RegisterConverter(_float, this);
            context.RegisterConverter(_double, this);
            context.RegisterConverter(_decimal, this);

            context.RegisterConverter(_nfloat, this);
            context.RegisterConverter(_ndouble, this);
            context.RegisterConverter(_ndecimal, this);

            context.RegisterAlias("Float", _float);
            context.RegisterAlias("Double", _double);
            context.RegisterAlias("Decimal", _decimal);

            context.RegisterAlias("NullableFloat", _nfloat);
            context.RegisterAlias("NullableDouble", _ndouble);
            context.RegisterAlias("NullableDecimal", _ndecimal);
        }
        public override void Register(IXmlContextData context)
        {
            context.RegisterConverter(typeof(bool), this);
            context.RegisterConverter(typeof(byte), this);
            context.RegisterConverter(typeof(ushort), this);
            context.RegisterConverter(typeof(short), this);
            context.RegisterConverter(typeof(uint), this);
            context.RegisterConverter(typeof(int), this);
            context.RegisterConverter(typeof(ulong), this);
            context.RegisterConverter(typeof(long), this);
            context.RegisterConverter(typeof(char), this);

            context.RegisterConverter(typeof(bool?), this);
            context.RegisterConverter(typeof(byte?), this);
            context.RegisterConverter(typeof(ushort?), this);
            context.RegisterConverter(typeof(short?), this);
            context.RegisterConverter(typeof(uint?), this);
            context.RegisterConverter(typeof(int?), this);
            context.RegisterConverter(typeof(ulong?), this);
            context.RegisterConverter(typeof(long?), this);
            context.RegisterConverter(typeof(char?), this);

            context.RegisterAlias("Bool", typeof(bool));
            context.RegisterAlias("Byte", typeof(byte));
            context.RegisterAlias("UShort", typeof(ushort));
            context.RegisterAlias("Short", typeof(short));
            context.RegisterAlias("UInt", typeof(uint));
            context.RegisterAlias("Int", typeof(int));
            context.RegisterAlias("ULong", typeof(ulong));
            context.RegisterAlias("Long", typeof(long));
            context.RegisterAlias("Char", typeof(char));

            context.RegisterAlias("NullableBool", typeof(bool?));
            context.RegisterAlias("NullableByte", typeof(byte?));
            context.RegisterAlias("NullableUShort", typeof(ushort?));
            context.RegisterAlias("NullableShort", typeof(short?));
            context.RegisterAlias("NullableUInt", typeof(uint?));
            context.RegisterAlias("NullableInt", typeof(int?));
            context.RegisterAlias("NullableULong", typeof(ulong?));
            context.RegisterAlias("NullableLong", typeof(long?));
            context.RegisterAlias("NullableChar", typeof(char?));
        }
예제 #6
0
 public override void Register(IXmlContextData context)
 {
     context.RegisterConverter(__arrayType, this);
     context.RegisterAlias("Array", __arrayType);
 }
예제 #7
0
 public override void Register(IXmlContextData context)
 {
 }
예제 #8
0
 public override void Register(IXmlContextData context)
 {
     context.RegisterConverter(__type, this);
     context.RegisterAlias("null", __type);
 }
예제 #9
0
 public override void Register(IXmlContextData context)
 {
     context.RegisterConverter(__enumType, this);
     context.RegisterAlias("Enum", __enumType);
 }
예제 #10
0
 public override void Register(IXmlContextData context)
 {
     context.RegisterConverter(__stringType, this);
     context.RegisterAlias("String", __stringType);
 }
예제 #11
0
 public override void Register(IXmlContextData context)
 {
     context.RegisterConverter(__configurationSectionType, this);
     DeserializeMethod = typeof(ConfigurationSection).GetMethod("DeserializeSection", BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Instance);
     SerializeMethod   = typeof(ConfigurationSection).GetMethod("SerializeSection", BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Instance);
 }
 public override void Register(IXmlContextData context)
 {
     context.RegisterConverter(__xmlType, this);
     context.RegisterAlias("XmlDocument", __xmlType);
 }
예제 #13
0
 public abstract void Register(IXmlContextData context);
예제 #14
0
 public override void Register(IXmlContextData context)
 {
     context.RegisterConverter(__type, this);
 }
 private static void AddConverter(IXmlConverter converter, IXmlContextData prov)
 {
     converter.Register(prov);
 }