Skip to content

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

Open
devnio wants to merge 1 commit into
UnityCommunity:mainfrom
devnio:devnio/setToNullInsteadOfDefault
Open

devnio wants to merge 1 commit into
UnityCommunity:mainfrom
devnio:devnio/setToNullInsteadOfDefault

Conversation

@devnio

@devnio devnio commented Mar 31, 2026

Copy link
Copy Markdown

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

1 participant