public bool TryGet(XmlName xsiType, out IXmlIncludedType includedType) { if (xsiType == XmlName.Empty || xsiType == this.XsiType) { return(Try.Success(out includedType, this)); } if (!includedTypes.TryGet(xsiType, out includedType)) { return(false); } if (!ClrType.IsAssignableFrom(includedType.ClrType)) { return(Try.Failure(out includedType)); } return(true); }