Tutorial by Topics: am

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 ...
A lambda expression is a syntax for creating anonymous functions inline. More formally, from the C# Programming Guide: A lambda expression is an anonymous function that you can use to create delegates or expression tree types. By using lambda expressions, you can write local functions that can ...
One of MEF's big advantages over other technologies that support the inversion-of-control pattern is that it supports resolving dependencies that are not known at design-time, without needing much (if any) configuration. All examples require a reference to the System.ComponentModel.Composition as...
The nameof operator allows you to get the name of a variable, type or member in string form without hard-coding it as a literal. The operation is evaluated at compile-time, which means that you can rename a referenced identifier, using an IDE's rename feature, and the name string will update with i...
A Stream represents a sequence of elements and supports different kind of operations to perform computations upon those elements. With Java 8, Collection interface has two methods to generate a Stream: stream() and parallelStream(). Stream operations are either intermediate or terminal. Intermediate...
Lambda expressions provide a clear and concise way of implementing a single-method interface using an expression. They allow you to reduce the amount of code you have to create and maintain. While similar to anonymous classes, they have no type information by themselves. Type inference needs to happ...
int read(byte[] b) throws IOException Note that most of the time you do NOT use InputStreams directly but use BufferedStreams, or similar. This is because InputStream reads from the source every time the read method is called. This can cause significant CPU usage in context switches into an...
Concurrent computing is a form of computing in which several computations are executed concurrently instead of sequentially. Java language is designed to support concurrent programming through the usage of threads. Objects and resources can be accessed by multiple threads; each thread can potentiall...
PHP's functional programming relies on functions. Functions in PHP provide organized, reusable code to perform a set of actions. Functions simplify the coding process, prevent redundant logic, and make code easier to follow. This topic describes the declaration and utilization of functions, argument...
Xamarin.iOS allows you to create native iOS applications using the same UI controls you would in Objective-C and Xcode, but with the flexibility and elegance of a modern language (C#), the power of the .NET Base Class Library (BCL), and two first-class IDEs - Xamarin Studio and Visual Studio - at ...
Xamarin.Android allows you to create native Android applications using the same UI controls as you would in Java, except with the flexibility and elegance of a modern language (C#), the power of the .NET Base Class Library (BCL), and two first-class IDEs - Xamarin Studio and Visual Studio - at the...
data.frame(..., row.names = NULL, check.rows = FALSE, check.names = TRUE, stringsAsFactors = default.stringsAsFactors()) as.data.frame(x, row.names = NULL, optional = FALSE, ...) # generic function as.data.frame(x, ..., stringsAsFactors = default.stringsAsFactors()) # S3 method for cl...
In C++ Metaprogramming refers to the use of macros or templates to generate code at compile-time. In general, macros are frowned upon in this role and templates are preferred, although they are not as generic. Template metaprogramming often makes use of compile-time computations, whether via templ...
Proc.new(block) lambda { |args| code } ->(arg1, arg2) { code } object.to_proc { |single_arg| code } do |arg, (key, value)| code end Be careful about operator precedence when you have a line with multiple methods chained, like: str = "abcdefg" puts str.gsub(/./) do |mat...
Used to prevent name collisions when using multiple libraries, a namespace is a declarative prefix for functions, classes, types, etc. namespace identifier(opt) { declaration-seq } inline namespace identifier(opt) { declaration-seq } /* since C++11 */ inline(opt) namespace attribute-specifie...
AttributeDetailsnameSets the element's name, to be used with an a tag to change the iframe's src.widthSets the element's width in pixels.heightSets the element's height in pixels.srcSpecifies the page that will be displayed in the frame.srcdocSpecifies the content that will be displayed in the fra...

Page 1 of 26