public override bool Equals(object obj)
        {
            XamlValueConverter <TConverterBase> other = obj as XamlValueConverter <TConverterBase>;

            if (other is null)
            {
                return(false);
            }
            return(this == other);
        }
Esempio n. 2
0
        ///<summary>Ctor used by directives</summary>
        internal MemberReflector(XamlType type, XamlValueConverter <TypeConverter> typeConverter)
        {
            Type = type;
            _typeConverter.Value             = typeConverter;
            _designerSerializationVisibility = DesignerSerializationVisibility.Visible;
            _memberBits = (int)BoolMemberBits.Directive | (int)BoolMemberBits.AllValid;

            // Explicitly set all the nullable references so that IsSet is true
            _deferringLoader.Value = null;
            _getter.Value          = null;
            _setter.Value          = null;
            _valueSerializer.Value = null;
        }
 public bool Equals(XamlValueConverter <TConverterBase> other)
 {
     return(this == other);
 }