📜  c# 类负责创建实例 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:52.489000             🧑  作者: Mango

代码示例1
public class BusinessObject
{
    private BusinessObject(string property)
    {
    }

    public class Factory
    {
        public static BusinessObject CreateBusinessObject(string property)
        {
            return new BusinessObject(property);
        }
    }
}