BO4E/UserPropertiesExtensions.cs
/// <summary>
///     Removes the Value of a UserProperty.
/// </summary>
/// <param name="userPropertyKey">key of the <paramref name="parent" />.UserProperties dictionary</param>
/// <typeparam name="TParent">class implementing <see cref="IUserProperties" /></typeparam>
/// <param name="parent">object implementing <see cref="IUserProperties" /></param>
/// <returns></returns>
Removes the Value of a UserProperty.
Removes the Value of a UserProperty .
public static void RemoveUserProperty<TParent>(this TParent parent, string userPropertyKey)
            where TParent : IUserProperties
        {
            if (parent.UserProperties == null) return;
            if (parent.UserProperties.ContainsKey(userPropertyKey)) parent.UserProperties.Remove(userPropertyKey);
        }
public static void RemoveUserProperty < TParent > ( this TParent parent , string userPropertyKey ) where TParent : IUserProperties { if ( parent . UserProperties == null ) return ; if ( parent . UserProperties . ContainsKey ( userPropertyKey ) ) parent . UserProperties . Remove ( userPropertyKey ) ; }
Removes the Value of a UserProperty.
Removes the Value of a UserProperty .
// if user properties don't exist we cannot remove anything // if there is already an value for the property, delete it
None
TParent
this
userPropertyKey
string
key of the .UserProperties dictionary
key of the . UserProperties dictionary
parent
None
typeparam
None