상속: ITranscoder
예제 #1
0
        public bool Equals(AbstractTranscoder op)
        {
            // If parameter is null return false:
            if ((object)op == null)
            {
                return(false);
            }

            // Return true if they match
            return(Item.Equals(op.Item) && Type == op.Type && Quality == op.Quality);
        }
예제 #2
0
        public override bool Equals(Object obj)
        {
            // If they are the exact same object, return true
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }
            else if (IsDirect)
            {
                // If this is a direct transcoder, only use reference equality
                return(false);
            }

            // If parameter is null return false.
            if ((object)obj == null)
            {
                return(false);
            }

            // If the types don't match exactly, return false
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }

            // If parameter cannot be cast to AbstractTranscoder return false.
            AbstractTranscoder op = obj as AbstractTranscoder;

            if ((object)op == null)
            {
                return(false);
            }

            // Return true if the fields match:
            return(Equals(op));
        }
예제 #3
0
        public bool Equals(AbstractTranscoder op)
        {
            // If parameter is null return false:
            if ((object)op == null)
            {
                return false;
            }

            // Return true if they match
            return Item.Equals(op.Item) && Type == op.Type && Quality == op.Quality;
        }