Exemple #1
0
        internal static AccessCondition GetAccessCondition(SerializableAccessCondition serialization)
        {
            if (null == serialization)
            {
                return(null);
            }

            return(serialization.AccessCondition);
        }
Exemple #2
0
        internal static void SetAccessCondition(
            ref SerializableAccessCondition serialization,
            AccessCondition value)
        {
            if ((null == serialization) &&
                (null == value))
            {
                return;
            }

            if (null != serialization)
            {
                serialization.AccessCondition = value;
            }
            else
            {
                serialization = new SerializableAccessCondition()
                {
                    AccessCondition = value
                };
            }
        }