Ejemplo n.º 1
0
 internal RegistryReadValueCommand(BridgeMessageDeserializer deserializer)
     : base(deserializer.CommandName)
 {
     BaseKey      = deserializer.GetEnumValue <RegistryBaseKey>(ParamName.RegistryBaseKey);
     Key          = deserializer.GetStringValue(ParamName.RegistryKey);
     ValueName    = deserializer.GetStringValue(ParamName.RegistryValueName);
     DefaultValue = (T)Convert.ChangeType(deserializer.GetValue(ParamName.RegistryDefaultValue), typeof(T));
 }
 internal RegistryWriteValueCommand(BridgeMessageDeserializer deserializer)
     : base(deserializer.CommandName)
 {
     BaseKey   = deserializer.GetEnumValue <RegistryBaseKey>(ParamName.RegistryBaseKey);
     Key       = deserializer.GetStringValue(ParamName.RegistryKey);
     ValueName = deserializer.GetStringValue(ParamName.RegistryValueName);
     Value     = (T)deserializer.GetValue(ParamName.RegistryValue);
 }