Exemplo n.º 1
0
        static DeviceRegistryPropertyValue()
        {
            ConverterRegistry.Register(new StringConverter(), DeviceRegistryPropertyType.String,
                                       DeviceRegistryPropertyType.ExpandString, DeviceRegistryPropertyType.ResourceList);

            ConverterRegistry.Register(new StringListConverter(), DeviceRegistryPropertyType.MultiString);

            ConverterRegistry.Register(new UInt32Converter(), DeviceRegistryPropertyType.DoubleWord,
                                       DeviceRegistryPropertyType.DoubleWordBigEndian);

            ConverterRegistry.Register(new UInt64Converter(), DeviceRegistryPropertyType.QuadWord);

            ConverterRegistry.Register(new ByteArrayConverter(), DeviceRegistryPropertyType.Binary);
        }
 static DevicePropertyValue()
 {
     ConverterRegistry.Register(new BooleanConverter(), DevicePropertyType.Boolean);
     ConverterRegistry.Register(new GuidConverter(), DevicePropertyType.Guid);
     ConverterRegistry.Register(new SByteConverter(), DevicePropertyType.Int8);
     ConverterRegistry.Register(new Int16Converter(), DevicePropertyType.Int16);
     ConverterRegistry.Register(new Int32Converter(), DevicePropertyType.Int32);
     ConverterRegistry.Register(new Int64Converter(), DevicePropertyType.Int64);
     ConverterRegistry.Register(new ByteConverter(), DevicePropertyType.UInt8);
     ConverterRegistry.Register(new UInt16Converter(), DevicePropertyType.UInt16);
     ConverterRegistry.Register(new UInt32Converter(), DevicePropertyType.UInt32);
     ConverterRegistry.Register(new UInt64Converter(), DevicePropertyType.UInt64);
     ConverterRegistry.Register(new SecurityDescriptorConverter(), DevicePropertyType.SecurityDescriptor);
     ConverterRegistry.Register(new StringConverter(), DevicePropertyType.String,
                                DevicePropertyType.SecurityDescriptorString);
     ConverterRegistry.Register(new StringListConverter(), DevicePropertyType.StringList);
 }