public bool Equals(IOpenApiTypeProperty other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(ClrProperty, other.ClrProperty)); }
public bool TryGetProperty(PropertyInfo clrProperty, out IOpenApiTypeProperty property) { return(_propertiesByClr.TryGetValue(clrProperty, out property)); }
public bool TryGetProperty(string propertyName, out IOpenApiTypeProperty property) { return(Properties.TryGetValue(propertyName, out property)); }
public void RegisterProperty(IOpenApiTypeProperty property) { _propertiesByName[property.JsonName] = property; _propertiesByClr[property.ClrProperty] = property; }