Esempio n. 1
0
 /// <summary>
 /// Tries to get the .net type representation of a schema.
 /// </summary>
 /// <param name="typeName">The name of the type.</param>
 /// <param name="clrType">The resolved .net type.</param>
 /// <returns>
 /// <c>true</c>, if a .net type was found that was bound
 /// the the specified schema type, <c>false</c> otherwise.
 /// </returns>
 public bool TryGetClrType(NameString typeName, out Type clrType)
 {
     return(_types.TryGetClrType(
                typeName.EnsureNotEmpty(nameof(typeName)),
                out clrType));
 }
Esempio n. 2
0
 public bool TryGetRuntimeType(NameString typeName, [NotNullWhen(true)] out Type?clrType) =>
 _types.TryGetClrType(typeName.EnsureNotEmpty(nameof(typeName)), out clrType);
Esempio n. 3
0
 public bool TryGetRuntimeType(NameString typeName, [MaybeNullWhen(false)] out Type?runtimeType) =>
 _types.TryGetClrType(typeName.EnsureNotEmpty(nameof(typeName)), out runtimeType);