/// <summary> /// Returns the generic interface id corresponding to the provided value. /// </summary> public static bool TryParse(GrainInterfaceType grainType, out GenericGrainInterfaceType result) { if (!grainType.IsDefault && TypeConverterExtensions.IsGenericType(grainType.Value)) { result = new GenericGrainInterfaceType(grainType); return(true); } result = default; return(false); }
/// <summary> /// Returns the generic grain type corresponding to the provided value. /// </summary> public static bool TryParse(GrainType grainType, out GenericGrainType result) { if (TypeConverterExtensions.IsGenericType(grainType.ToStringUtf8())) { result = new GenericGrainType(grainType); return(true); } result = default; return(false); }