(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
namespace YourNamespace | |
{ | |
/// <summary> | |
/// Uses the Name value of the <see cref="ColumnAttribute"/> specified to determine | |
/// the association between the name of the column in the query results and the member to | |
/// which it will be extracted. If no column mapping is present all members are mapped as | |
/// usual. | |
/// </summary> | |
/// <typeparam name="T">The type of the object that this association between the mapper applies to.</typeparam> | |
public class ColumnAttributeTypeMapper<T> : FallbackTypeMapper |
param ( | |
[Parameter(Mandatory = $true)] | |
[string] $FabricDataRoot, | |
[Parameter(Mandatory = $true)] | |
[string] $FabricLogRoot | |
) | |
$Preferences = Get-MpPreference | |
$ExclusionList = "$env:ProgramFiles\Microsoft Service Fabric", | |
$FabricDataRoot, |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
void Update(Entity entity) | |
{ | |
if (entity == null) | |
{ | |
throw new ArgumentNullException(nameof(entity)); | |
} | |
db.Entry(entity).State = EntityState.Detached; | |
var old = db.Entities.Find(entity.Id); | |
var oldEntry = db.Entry(old); |
/** | |
* | |
* | |
* @param {SVGSVGElement} svg: root svg element | |
* @param {number} x | |
* @param {number} y | |
* @param {SVGMatrix} ctm: element.getScreemCTM() | |
* @returns {SVGPoint} real position in container | |
*/ |
[StructLayout(LayoutKind.Sequential)] | |
public struct FixedArray8<T> | |
where T : unmanaged | |
{ | |
public T Value0; | |
public T Value1; | |
public T Value2; |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Runtime.Serialization; | |
using System.Security.Cryptography; | |
using System.Text; | |
using Newtonsoft.Json; |
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> | |
<PropertyGroup> | |
<OutputType>WinExe</OutputType> | |
<TargetFrameworks>net472;netcoreapp3.0</TargetFrameworks> | |
<UseWPF>true</UseWPF> | |
</PropertyGroup> | |
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' "> | |
<Reference Include="System" /> | |
<Reference Include="System.Data" /> |
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> | |
<PropertyGroup> | |
<OutputType>WinExe</OutputType> | |
<TargetFrameworks>net472;netcoreapp3.0</TargetFrameworks> | |
<UseWindowsForms>true</UseWindowsForms> | |
<LangVersion>7.3</LangVersion> | |
</PropertyGroup> | |
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' "> | |
<Reference Include="System" /> |