#CodingTips Avoid returning null for collections in #csharp! This removes the need for null checks in the code that consumes the call. Return the type IReadOnlyList<T> to work only on the content and return Array.Empty<T> to not allocate memory. #UnityTips #GodotTips #indiedev
9 likes 0 replies
?