Skip to content

Replace default(T) with null in singleton DestroyInstance methods #25

Open
devnio wants to merge 1 commit intoUnityCommunity:mainfrom
devnio:devnio/setToNullInsteadOfDefault
Open

Replace default(T) with null in singleton DestroyInstance methods #25
devnio wants to merge 1 commit intoUnityCommunity:mainfrom
devnio:devnio/setToNullInsteadOfDefault

Conversation

@devnio
Copy link
Copy Markdown

@devnio devnio commented Mar 31, 2026

T is always a reference type in both MonoSingleton and Singleton, so default(T) is equivalent to null. Replaced with explicit null for clarity.

…>, so default(T) is equivalent to null. Replaced with explicit null for clarity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant