Exemple #1
0
 public bool TryGet(Type clrType, out IXmlIncludedType includedType)
 {
     return(clrType == this.ClrType
       ? Try.Success(out includedType, this)
       : includedTypes.TryGet(clrType, out includedType));
 }
Exemple #2
0
 public bool TryGet(Type clrType, out IXmlKnownType knownType)
 {
     return(IsMatch(clrType) ? Try.Success(out knownType, this) : Try.Failure(out knownType));
 }
Exemple #3
0
 public bool TryGet(Type clrType, out IXmlIncludedType includedType)
 {
     return(clrType == this.clrType
                         ? Try.Success(out includedType, this)
                         : Try.Failure(out includedType));
 }
Exemple #4
0
 public bool TryGet(IXmlIdentity xmlName, out IXmlKnownType knownType)
 {
     return(IsMatch(xmlName) ? Try.Success(out knownType, this) : Try.Failure(out knownType));
 }
Exemple #5
0
 public bool TryGet(XmlName xsiType, out IXmlIncludedType includedType)
 {
     return(xsiType == XmlName.Empty || xsiType == this.XsiType
                         ? Try.Success(out includedType, this)
                         : Try.Failure(out includedType));
 }