Tutorial by Topics: a

Installing Binaries for StackExchange.Redis are available on Nuget, and the source is available on Github. Common Tasks Profiling VersionRelease Date1.0.1872014-03-18
What is Dapper? Dapper is a micro-ORM for .Net that extends your IDbConnection, simplifying query setup, execution, and result-reading. How do I get it? github: https://github.com/StackExchange/dapper-dot-net NuGet: https://www.nuget.org/packages/Dapper Common Tasks Basic Queryin...
public static IEnumerable<T> Query<T>(this IDbConnection cnn, string sql, object param = null, SqlTransaction transaction = null, bool buffered = true) public static IEnumerable<dynamic> Query (this IDbConnection cnn, string sql, object param = null, SqlTransaction transaction =...
Type Handlers allow database types to be converted to .Net custom types.
ParameterDetailsthis cnnThe underlying database connection - the this denotes an extension method; the connection does not need to be open - if it is not open, it is opened and closed automatically.<T> / Type(optional) The type of object to return; if the non-generic / non-Type API is used, a...
The .NET Framework is a set of libraries and a runtime, originally designed by Microsoft. All .NET programs compile to a bytecode called Microsoft Intermediate Language (MSIL). The MSIL is run by the Common Language Runtime (CLR). Below you can find several examples of "Hello World" in ...
C# is a multi-paradigm, C-descendant programming language from Microsoft. C# is a managed language that compiles to CIL, intermediate bytecode which can be executed on Windows, Mac OS X and Linux. Versions 1.0, 2.0 and 5.0 were standardized by ECMA (as ECMA-334), and standardization efforts for m...
@"verbatim strings are strings whose contents are not escaped, so in this case \n does not represent the newline character but two individual characters: \ and n. Verbatim strings are created prefixing the string contents with the @ character" @"To escape quotation marks, &qu...
In C#, an operator is a program element that is applied to one or more operands in an expression or statement. Operators that take one operand, such as the increment operator (++) or new, are referred to as unary operators. Operators that take two operands, such as arithmetic operators (+,-,*,/), ar...
The only requirement for an object to be initialized using this syntactic sugar is that the type implements System.Collections.IEnumerable and the Add method. Although we call it a collection initializer, the object does not have to be an collection.
$"content {expression} content" $"content {expression:format} content" $"content {expression} {{content in braces}} content}" $"content {expression:format} {{content in braces}} content}" String interpolation is a shorthand for the string.Format() ...
This sixth iteration of the C# language is provided by the Roslyn compiler. This compiler came out with version 4.6 of the .NET Framework, however it can generate code in a backward compatible manner to allow targeting earlier framework versions. C# version 6 code can be compiled in a fully backwa...
Constructors are methods in a class that are invoked when an instance of that class is created. Their main responsibility is to leave the new object in a useful and consistent state. Destructors/Finalizers are methods in a class that are invoked when an instance of that is destroyed. In C# they are...
class DerivedClass : BaseClass class DerivedClass : BaseClass, IExampleInterface class DerivedClass : BaseClass, IExampleInterface, IAnotherInterface Classes can inherit directly from only one class, but (instead or at the same time) can implement one or more interfaces. Structs can imp...
Do not use the XmlSerializer to parse HTML. For this, special libraries are available like the HTML Agility Pack
var result = possibleNullObject ?? defaultValue; ParameterDetailspossibleNullObjectThe value to test for null value. If non null, this value is returned. Must be a nullable type.defaultValueThe value returned if possibleNullObject is null. Must be the same type as possibleNullObject. The n...

Page 1 of 320