private bool IsMatch() { IXmlKnownType knownType; return(knownTypes.TryGet(this, out knownType) ? Try.Success(out type, knownType.ClrType) : Try.Failure(out type)); }
public static IXmlKnownType Require(this IXmlKnownTypeMap map, Type clrType) { IXmlKnownType knownType; if (map.TryGet(clrType, out knownType)) { return(knownType); } throw Error.NotXmlKnownType(clrType); }