protected void ParseParameters <T>(T myCommand) where T : class, new() { //LoadMapping(); var mpg = CreateMapping(); mpg.ForEach(mapping => { var attribute = mapping.Attribute; var property = mapping.Property; var settingValue = Flags.ContainsKey(attribute.Name) ? Flags[attribute.Name] : null; if (settingValue != null && property.CanWrite) { var tp = property.PropertyType; SerializationManager.DeserializeProperty(myCommand, property, settingValue); } }); }