public object DeserializeObjectProperty(ObjectPropertyInternal property, string rawValue) { #if DEBUG && DEBUG_SERIALIZATION return(((Func <XmlExpressionSerializerImpl, ObjectPropertyInternal, string, TypeBuilder, object>)lambda)(this, property, rawValue, typeBuilder)); #else return(((Func <XmlExpressionSerializerImpl, ObjectPropertyInternal, string, object>)lambda)(this, property, rawValue)); #endif }
internal void SetCustomParameterBool(ObjectPropertyInternal property, bool?value) => SetCustomParameterBool(SetDependenciesAndGetPropertyName(property), value);
internal void SetCustomParameterEnumXml <T>(ObjectPropertyInternal property, T @enum) => SetCustomParameterEnumXml(SetDependenciesAndGetPropertyName(property), @enum);
internal void SetCustomParameter(ObjectPropertyInternal property, object value) => SetCustomParameterInternal(SetDependenciesAndGetPropertyName(property), value);
public object DeserializeObjectProperty(ObjectPropertyInternal property, string rawValue) => DeserializeObjectPropertyInternal(property, rawValue);
private object GetObjectProperty(int objectId, ObjectPropertyInternal property) => GetObjectPropertyInternal(objectId, property);
internal void SetCustomParameterArray(ObjectPropertyInternal property, string[] value, char delim) => SetCustomParameterArray(GetObjectPropertyInternalName(property), value, delim);
internal object GetCustomParameter(ObjectPropertyInternal property) => GetCustomParameterInternal(GetObjectPropertyName(property));
internal void SetCustomParameterEnumXml <T>(ObjectPropertyInternal property, T @enum) => SetCustomParameterEnumXml(GetObjectPropertyInternalName(property), @enum);
internal void SetCustomParameterBool(ObjectPropertyInternal property, bool?value) => SetCustomParameterBool(GetObjectPropertyInternalName(property), value);
internal void SetCustomParameter(ObjectPropertyInternal property, object value) => SetCustomParameterInternal(GetObjectPropertyInternalName(property), value);
public SecondaryPropertyAttribute(ObjectPropertyInternal property) { Property = property; }
public SecondaryPropertyAttribute(ObjectPropertyInternal property, SecondaryPropertyStrategy strategy) { Property = property; Strategy = strategy; }
internal void SetCustomParameterArray(ObjectPropertyInternal property, string[] value, char delim) => SetCustomParameterArray(SetDependenciesAndGetPropertyName(property), value, delim);
private string GetObjectPropertyInternalName(ObjectPropertyInternal property) { return($"{property.GetDescription()}_"); }
/// <summary> /// Removes a parameter from the underlying parameter set. /// </summary> /// <param name="property">The name of the parameter to remove.</param> /// <returns>True if the specified parameter was found and removed. Otherwise, false.</returns> internal bool RemoveCustomParameter(ObjectPropertyInternal property) => RemoveCustomParameterInternal(GetObjectPropertyName(property));
public object DeserializeObjectProperty(ObjectPropertyInternal property, string rawValue) { var serializer = new XmlExpressionSerializerImpl(typeof(ObjectPropertyInternal), null); return(serializer.DeserializeObjectProperty(property, rawValue)); }
internal object GetCustomParameterEnumXml <T>(ObjectPropertyInternal property) => GetCustomParameterEnumXml <T>(GetObjectPropertyName(property));
internal bool?GetCustomParameterBool(ObjectPropertyInternal property) => GetCustomParameterBool(GetObjectPropertyName(property));
internal object DeserializeObjectProperty(ObjectPropertyInternal property, string rawValue) { return(serializer.DeserializeObjectProperty(property, rawValue)); }
internal string[] GetCustomParameterArray(ObjectPropertyInternal property, char delim) => GetCustomParameterArray(GetObjectPropertyName(property), delim);
private async Task <object> GetObjectPropertyAsync(int objectId, ObjectPropertyInternal property, CancellationToken token) => await GetObjectPropertyInternalAsync(objectId, property, token).ConfigureAwait(false);
public DependentPropertyAttribute(ObjectPropertyInternal property, object requiredValue, bool reverseDependency = false) : this((Enum)property, requiredValue, reverseDependency) { }