CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
PropertyInfoFactory.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="PropertyInfoFactory.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Creates the factory object that</summary>
7//-----------------------------------------------------------------------
8using System;
9
11{
16 public static class PropertyInfoFactory
17 {
21 public static Type FactoryType { get; internal set; } = typeof(DefaultPropertyInfoFactory);
22
23 private static IPropertyInfoFactory _factory;
24
29 public static IPropertyInfoFactory Factory
30 {
31 get
32 {
33 if (_factory == null)
34 _factory = (IPropertyInfoFactory)Activator.CreateInstance(FactoryType);
35 return _factory;
36 }
37 }
38 }
39}