public override int GetHashCode() { unchecked { return((internalModifiers != null? internalModifiers.SequenceHashCode() : 0) ^ ElementType.GetHashCode() ^ (Namespaces != null? Namespaces.SequenceHashCode() : 0) ^ (ElementTypeName != null? ElementTypeName.GetHashCode() : 0)); } }
public sealed override Exception TryResolve(ReflectionDomain reflectionDomain, RuntimeAssembly currentAssembly, bool ignoreCase, out RuntimeType result) { result = null; RuntimeType elementType; Exception typeLoadException = ElementTypeName.TryResolve(reflectionDomain, currentAssembly, ignoreCase, out elementType); if (typeLoadException != null) { return(typeLoadException); } result = ReflectionCoreNonPortable.GetPointerType(elementType); return(null); }
public sealed override Type ResolveType(Assembly containingAssemblyIfAny, GetTypeOptions getTypeOptions) { return(ElementTypeName.ResolveType(containingAssemblyIfAny, getTypeOptions)?.MakePointerType()); }
/// <summary> /// Append the name for typeof operator. /// </summary> /// <param name="typeName">A <see cref="StringBuilder"/> to append the name.</param> /// <param name="context"></param> protected override void AppendNameToCore(StringBuilder typeName, IFormatterContext context) { ElementTypeName.AppendNameTo(typeName, context); typeName.Append(Ranks); }
/// <summary> /// Append the full name of this object. /// </summary> /// <param name="typeName">A <see cref="StringBuilder"/> to append the name.</param> protected override void AppendFullNameToCore(StringBuilder typeName) { ElementTypeName.AppendFullNameTo(typeName); typeName.Append(Ranks); }