You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
492 B
C#
18 lines
492 B
C#
using System;
|
|
|
|
namespace LanLib.Singleton
|
|
{
|
|
public class SingletonAutoLoadAttribute : Attribute
|
|
{
|
|
public Type type { get; private set; }
|
|
|
|
public SingletonCreateCondition createCondition { get; private set; }
|
|
|
|
public SingletonAutoLoadAttribute(Type type,
|
|
SingletonCreateCondition createCondition = SingletonCreateCondition.ReloadDomain)
|
|
{
|
|
this.type = type;
|
|
this.createCondition = createCondition;
|
|
}
|
|
}
|
|
} |