Ejemplo n.º 1
0
        public object Clone()
        {
            MicrosoftImageRegion cloneRegion = new MicrosoftImageRegion();

            cloneRegion.RectangleString   = this.RectangleString;
            cloneRegion.PersonLiveIdCID   = this.PersonLiveIdCID;
            cloneRegion.PersonEmailDigest = this.PersonEmailDigest;
            cloneRegion.PersonDisplayName = this.PersonDisplayName;

            return(cloneRegion);
        }
Ejemplo n.º 2
0
        public override bool Equals(object unknownObject)
        {
            if (unknownObject is MicrosoftImageRegion)
            {
                MicrosoftImageRegion compareRegion = unknownObject as MicrosoftImageRegion;

                if (compareRegion.PersonDisplayName == this.PersonDisplayName &&
                    compareRegion.PersonEmailDigest == this.PersonEmailDigest &&
                    compareRegion.PersonLiveIdCID == this.PersonLiveIdCID &&
                    compareRegion.RectangleString == this.RectangleString)
                {
                    return(true);
                }
            }

            return(false);
        }