Migrated Documentation library from NetFlow.DocumentationHelper.Library
This commit is contained in:
Regular → Executable
+11
-1
@@ -1,7 +1,17 @@
|
||||
using System;
|
||||
using OmegaLeo.HelperLib.Shared.Attributes;
|
||||
|
||||
namespace GameDevLibrary.Models
|
||||
namespace OmegaLeo.HelperLib.Models
|
||||
{
|
||||
[Serializable]
|
||||
[Documentation("InstancedObject<T> Class", "A generic base class that ensures only one instance of a derived class exists at any time.", new string[] { "T: The type of the derived class." },
|
||||
@"```cs
|
||||
public class MySingleton : InstancedObject<MySingleton>
|
||||
{
|
||||
// Your class implementation here
|
||||
}
|
||||
```")]
|
||||
[Changelog("1.2.0", "Fixed root namespace to OmegaLeo.HelperLib.Models.", "January 28, 2026")]
|
||||
public abstract class InstancedObject<T> where T : class
|
||||
{
|
||||
public static T Instance { get; private set; }
|
||||
|
||||
Reference in New Issue
Block a user