internal void DeserializeProperty(AmfClassDescriptor classDescriptor, object obj, IDictionary<string, object> staticMembers) { object value; if (staticMembers.TryGetValue(_serializedName, out value)) { _property.SetValue(obj, value, null); } else { throw new AmfException(string.Format( "The class registered for the alias \"{0}\" was received but was missing an expected " + "property (\"{1}\").", classDescriptor.Alias, _serializedName)); } }
internal void SerializeProperty(AmfClassDescriptor classDescriptor, object obj, IDictionary<string, object> staticMembers) { staticMembers[_serializedName] = _property.GetValue(obj, null); }
internal string[] GetUsedPropertyNames(AmfClassDescriptor descriptor) { return new string[] { _serializedName }; }