先上例子
using System;
using System.Reflection;
namespace HGFramwork
{
class ConstructorTest
{
public int number = 10;
public string name = "Money";
public ConstructorTest()
{
Console.WriteLine("Null parammeter");
}
private ConstructorTest(int _number)
{
Console.WriteLine("The number is : " + _number)