Zum Inhalt springen
Binary Impact GmbH Logo Binary Impact GmbH Logo
  • Home
  • Über uns
  • Leistungen
  • Impacts
  • UnityTips
  • Games
  • Home
  • Über uns
  • Leistungen
  • Impacts
  • UnityTips
  • Games
  • Home
  • Über uns
  • Leistungen
  • Impacts
  • UnityTips
  • Games

Avoid returning null

Senad Palic2024-02-13T12:15:28+01:0013.02.2024|

#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 pic.twitter.com/Glannwg3BX

— Binary Impact (@BinaryImpactG) February 13, 2024

Adresse

Binary Impact GmbH
Südstraße 24
56412 Niederelbert

Seiten

  • Kontakt
  • Jobs
  • Presse
  • Datenschutz
  • Impressum

Kontakt

kontakt@binaryimpact.de +49 2667 7569877
  • Deutsch
Kontakt
© Copyright    |  Binary Impact GmbH
YouTubeFacebookXInstagramDiscordTwitchMastodonBeam auf SteamGame VerbandGame Verband
Page load link

Verwendung von Cookies und personenbezogenen Daten

Diese Webseite nutzt Cookies, um dir das bestmögliche Erlebnis zu gewährleisten. Wenn du die Seite weiter nutzt, erklärst du dich mit unseren Datenschutzbestimmungen einverstanden.
Zum Impressum | Zur Datenschutzerklärung
Akzeptieren