Tutorial by Topics: n

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...
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...
public static ReturnType MyExtensionMethod(this TargetType target) public static ReturnType MyExtensionMethod(this TargetType target, TArg1 arg1, ...) ParameterDetailsthisThe first parameter of an extension method should always be preceded by the this keyword, followed by the identifier wi...
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...
public void SomeMethod <T> () { } public void SomeMethod<T, V>() { } public T SomeMethod<T>(IEnumerable<T> sequence) { ... } public void SomeMethod<T>() where T : new() { } public void SomeMethod<T, V>() where T : new() where V : struct { } public void Som...
Reflection is a C# language mechanism for accessing dynamic object properties on runtime. Typically, reflection is used to fetch the information about dynamic object type and object attribute values. In REST application, for example, reflection could be used to iterate through serialized response ob...
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...

Page 1 of 329