static ReadOnlyCollection<DmdType> GetGenericArguments(DmdType type) { if (!type.IsMetadataReference) return type.GetGenericArguments(); var resolvedType = type.ResolveNoThrow(); if ((object)resolvedType != null) return resolvedType.GetGenericArguments(); return ReadOnlyCollectionHelpers.Empty<DmdType>(); }
static ReadOnlyCollection <DmdType> GetGenericArguments(DmdType type) { if (!type.IsMetadataReference) { return(type.GetGenericArguments()); } var resolvedType = type.ResolveNoThrow(); if (!(resolvedType is null)) { return(resolvedType.GetGenericArguments()); } return(ReadOnlyCollectionHelpers.Empty <DmdType>()); }
public override ReadOnlyCollection <DmdType> GetGenericArguments() => methodSignature.GenericParameterCount == 0 ? ReadOnlyCollectionHelpers.Empty <DmdType>() : ResolvedConstructor.GetGenericArguments();
public override ReadOnlyCollection <int> GetArrayLowerBounds() => ReadOnlyCollectionHelpers.Empty <int>();
public override ReadOnlyCollection <int> GetArraySizes() => ReadOnlyCollectionHelpers.Empty <int>();