/// <summary> /// Initializes a new instance of the <see cref="MethodDescriptor"/> class. /// </summary> /// <param name="name">The name of the member.</param> /// <param name="returnType">The return type of the member.</param> /// <param name="typeArguments">The generic type arguments of the method.</param> /// <param name="parameterTypes">The parameter types in the method.</param> public MethodDescriptor( String name, TypeRef.TypeDescriptor returnType = null, TypeRef.TypeDescriptor[] typeArguments = null, TypeRef.TypeDescriptor[] parameterTypes = null ) : base(name, returnType) { this.TypeArguments = typeArguments ?? Arrays.Empty <TypeRef.TypeDescriptor>(); this.ParameterTypes = parameterTypes ?? Arrays.Empty <TypeRef.TypeDescriptor>(); }
/// <summary> /// Initializes a new instance of the <see cref="MemberDescriptor"/> class. /// </summary> /// <param name="name">The name of the member.</param> /// <param name="returnType">The return type of the member.</param> public MemberDescriptor(String name, TypeRef.TypeDescriptor returnType = null) { this.Name = name ?? ""; this.ReturnType = returnType ?? new TypeRef.TypeDescriptor(); }
/// <summary> /// Initializes a new instance of the <see cref="MemberDescriptor"/> class. /// </summary> /// <param name="name">The name of the member.</param> /// <param name="returnType">The return type of the member.</param> public MemberDescriptor(String name, TypeRef.TypeDescriptor returnType = null) { this.Name = name ?? ""; this.ReturnType = returnType ?? new TypeRef.TypeDescriptor(); }