From 8cb3ac8b57dca2b07c658814f6139668e40f4606 Mon Sep 17 00:00:00 2001 From: Matthias Altmann Date: Fri, 19 Oct 2018 19:34:57 +0200 Subject: [PATCH] link fix --- content/csharp/getting-started/strings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/csharp/getting-started/strings.md b/content/csharp/getting-started/strings.md index abecbff..b453d95 100644 --- a/content/csharp/getting-started/strings.md +++ b/content/csharp/getting-started/strings.md @@ -105,7 +105,7 @@ class Program If you try to work with the members of an object that isn't set (one that is null), your program will throw a ``NullReferenceException`` with a message "Object reference not set to an instance of an object". These are very common, and often very frustrating, errors in C# applications. You can mitigate them by ensuring you're always setting a default value to your instances rather than allowing them to remain null. -You can check to see if a string value is null by comparing it to null (for instance, ``(nullstring == null)`` would evaluate to ``true``). There are also some built-in helper functions for detecting whether a string is either null or empty. Both ``(String.IsNullOrEmpty(emptyString))`` and ``(String.IsNullOrEmpty(nullString))`` would return ``true`` as well. This demonstrates another common pattern in C#, which is the use of static *extension methods* on a type for functionality that is useful to apply to null instances of the type. You will learn more about extension methods in [Defining and Calling Methods](methods) lesson. +You can check to see if a string value is null by comparing it to null (for instance, ``(nullstring == null)`` would evaluate to ``true``). There are also some built-in helper functions for detecting whether a string is either null or empty. Both ``(String.IsNullOrEmpty(emptyString))`` and ``(String.IsNullOrEmpty(nullString))`` would return ``true`` as well. This demonstrates another common pattern in C#, which is the use of static *extension methods* on a type for functionality that is useful to apply to null instances of the type. You will learn more about extension methods in [Defining and Calling Methods](methods.md) lesson. ## String Operations