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));
        }
Exemplo n.º 3
0
        public AccessConditions()
        {
            DataAreas    = new DataAreaAccessCondition[3];
            DataAreas[0] = new DataAreaAccessCondition();
            DataAreas[1] = new DataAreaAccessCondition();
            DataAreas[2] = new DataAreaAccessCondition();

            Trailer = new TrailerAccessCondition();

            MADVersion           = MADVersionEnum.NoMAD;
            MultiApplicationCard = false;
        }