コード例 #1
0
 public void CopyFrom(MFVideoNormalizedRect from)
 {
     left   = from.left;
     top    = from.top;
     right  = from.right;
     bottom = from.bottom;
 }
コード例 #2
0
        public override bool Equals(object obj)
        {
            if (obj is MFVideoNormalizedRect)
            {
#pragma warning disable IDE0020 // Use pattern matching
                MFVideoNormalizedRect cmp = (MFVideoNormalizedRect)obj;
#pragma warning restore IDE0020 // Use pattern matching

                return(right == cmp.right && bottom == cmp.bottom && left == cmp.left && top == cmp.top);
            }

            return(false);
        }