Tutorial by Topics: in

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 =...
StackExchange.Redis's profiling features are composed of the IProfiler interface, and the ConnectionMultiplexer.RegisterProfiler(IProfiler), ConnectionMultiplexer.BeginProfiling(object), ConnectionMultiplexer.FinishProfiling(object) methods. Begin and Finish profiling take a context object so tha...
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...
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() ...
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...
LINQ (Language Integrated Query) is an expression that retrieves data from a data source. LINQ simplifies this situation by offering a consistent model for working with data across various kinds of data sources and formats. In a LINQ query, you are always working with objects. You use the same basic...
See also: HTTP Clients
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...
Provides a convenient syntax that ensures the correct use of IDisposable objects. using (disposable) { } using (IDisposable disposable = new MyDisposable()) { } The object in the using statement must implement the IDisposable interface. using(var obj = new MyObject()) { } class M...
\' — single quote (0x0027) \" — double quote (0x0022) \\ — backslash (0x005C) \0 — null (0x0000) \a — alert (0x0007) \b — backspace (0x0008) \f — form feed (0x000C) \n — new line (0x000A) \r — carriage return (0x000D) \t — horizontal tab (0x0009) \v — vertical tab (0x000B) \u0000 ...

Page 1 of 207