Exemplo n.º 1
0
        internal static AccessCondition GetAccessCondition(SerializableAccessCondition serialization)
        {
            if (null == serialization)
            {
                return(null);
            }

            return(serialization.AccessCondition);
        }
Exemplo n.º 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
                };
            }
        }