public bool Equals(IOpenApiTypeProperty other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(Equals(ClrProperty, other.ClrProperty));
        }
Example #2
0
 public bool TryGetProperty(PropertyInfo clrProperty, out IOpenApiTypeProperty property)
 {
     return(_propertiesByClr.TryGetValue(clrProperty, out property));
 }
Example #3
0
 public bool TryGetProperty(string propertyName, out IOpenApiTypeProperty property)
 {
     return(Properties.TryGetValue(propertyName, out property));
 }
Example #4
0
 public void RegisterProperty(IOpenApiTypeProperty property)
 {
     _propertiesByName[property.JsonName]   = property;
     _propertiesByClr[property.ClrProperty] = property;
 }