Week Reading: 12/22/2017

Front End Connect behind the front-end experience Free Lance Freelance Tools C# Generate PDF What makes C# great again C# advent Calendar Business Startup advise React Advance Features Function vs Class Components Below the surface Controllable React Components Getting Started With React

Week Reading: 12/15/2017

C# 7 Series, Part 7: Ref Returns In Parameters in C# 7.2 – Read-only References 5 More C# Extension Methods for the Stocking! How to Encrypt and Decrypt Connection Strings in Web.Config File C# attributes you should know #1: [DebuggerTypeProxy] .NET API Browser Video

C# Version History

C# Version History Version Features Visual Studio Framework C# 7.2 Reference semantics with value types Non-trailing named arguments Leading underscores in numeric literals private protected access modifier Visual Studio 2017 version 15.5 .NET Core/ .NET Framework 4.7.1 C# 7.1 async Main method default literal expressions Inferred tuple element names Visual Studio 2017 version 15.3 .NET […]

C# Difference between ref and out parameters

In C# by default the parameters are always passed by value but you can also use out and ref keywords for passing parameters by reference. Both keywords are identical with the only difference of initializing the value of the variable. However, ref and out are treated differently at run-time but they are treated same at […]

C# List of String Functions

String Functions string.IsNullOrEmpty() – read more here Code Sample: string output = string.IsNullOrEmpty(someString) ? “0” : someString; You can also use the null coalescing operator (??), but it would not handle empty strings. string output = somePossiblyNullString ?? “0”; string.sNullOrWhiteSpace() – Indicates whether a specified string is null, empty, or consists only of white-space characters. […]

C# virtual vs override

Virtual vs Override Virtual means making another version of same method in a child class, simply check for newer implementations before calling but abstract method is guaranteed to be overridden in all derived classes. In programming terminology it means that it can modify a method, property, indexer or event declaration and allow it to be […]

C# Collection of reserved keywords

Keywords A abstract as B base bool break byte C case catch char checked class const continue D decimal default delegate do double E else enum event explicit extern F false finally fixed float for foreach G goto I if implicit in int interface internal is lock longnamespace Main() – this is the method where […]

C# Identifiers and Keywords

Identifiers and Keywords Collection Set of objects grouped together Contextual keywords Can be used as identifiers. With contextual keywords, ambiguity cannot arise within the context in which they are used. Link to Collections of reserved and contextual words Identifiers Are names that programmers choose for their classes, methods, variables, and so on. An identifier must be a […]