public bool SetPropertyFloat(string key, float val) { var prop = PropertyValue.FromFloat(val); if (properties.ContainsKey(key) && properties[key].Equals(prop)) { return(false); } properties[key] = prop; return(true); }