Exemplo n.º 1
0
 /// <summary>
 /// Initialize the object based on a DataAreaAccessCondition
 /// </summary>
 /// <param name="access">the DataAreaAccessCondition to clone</param>
 internal void Initialize(DataAreaAccessCondition access)
 {
     Read      = access.Read;
     Write     = access.Write;
     Increment = access.Increment;
     Decrement = access.Decrement;
 }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            DataAreaAccessCondition daac = obj as DataAreaAccessCondition;

            if (daac == null)
            {
                return(false);
            }

            return((daac.Read == Read) && (daac.Write == Write) && (daac.Increment == Increment) && (daac.Decrement == Decrement));
        }