mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
40 lines
892 B
C#
40 lines
892 B
C#
//
|
|
// System.Reflection/ConstructorInfo.cs
|
|
//
|
|
// Author:
|
|
// Paolo Molaro ([email protected])
|
|
//
|
|
// (C) 2001 Ximian, Inc. http://www.ximian.com
|
|
//
|
|
|
|
using System;
|
|
using System.Reflection;
|
|
using System.Globalization;
|
|
|
|
namespace System.Reflection {
|
|
[Serializable]
|
|
public abstract class ConstructorInfo : MethodBase {
|
|
public static readonly string ConstructorName = ".ctor";
|
|
public static readonly string TypeConstructorName = ".cctor";
|
|
|
|
protected ConstructorInfo() {
|
|
}
|
|
|
|
public override MemberTypes MemberType {
|
|
get {return MemberTypes.Constructor;}
|
|
}
|
|
|
|
public object Invoke (object[] parameters)
|
|
{
|
|
if (parameters == null)
|
|
parameters = new object [0];
|
|
|
|
return Invoke (BindingFlags.CreateInstance, null, parameters, null);
|
|
}
|
|
|
|
public abstract object Invoke (BindingFlags invokeAttr, Binder binder, object[] parameters,
|
|
CultureInfo culture);
|
|
|
|
}
|
|
}
|