WaveBox.Transcoding.VideoTranscoder.Equals C# (CSharp) Method

Equals() public method

public Equals ( Object obj ) : bool
obj Object
return bool
        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.
            VideoTranscoder op = obj as VideoTranscoder;
            if ((object)op == null)
            {
                return false;
            }

            // Return true if the fields match:
            return Equals(op);
        }

Same methods

VideoTranscoder::Equals ( VideoTranscoder op ) : bool