Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
internal class Program
{
// Consumer3.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//
#include "stdafx.h"
#include "../Provider3/ProviderManifest3.h"
VOID WINAPI EventRecordCallback(_In_ PEVENT_RECORD eventRecord);
int _tmain(int argc, _TCHAR* argv[])
{
namespace CodeEmbed.Sample
{
class Program
{
static void Main()
{
Console.WriteLine("Hello, World.");
}
}
}
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<!DOCTYPE html>
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<title>Microsoft Public License (MS-PL)</title>
<style type="text/css">
body {
<script type="text/javascript">
alert("Hoge");
</script>
using System;
using System.Linq.Expressions;
using System.Management.Automation;
internal static class PSCmdletExtensions
{
public static string GetMemberName<TType, TProperty>(
this TType obj,
Expression<Func<TType, TProperty>> expression)
{
public static class ExpressionCombiner
{
public static Expression<Func<T, bool>> OrElse<T>(
params Expression<Func<T, bool>>[] expressions)
{
return OrElse(expressions.AsEnumerable());
}
public static Expression<Func<T, bool>> OrElse<T>(
this IEnumerable<Expression<Func<T, bool>>> expressions)
function ConvertTo-Dictionary {
param(
[Parameter(Mandatory, Position = 0, ValueFromPipeline)]
[PSObject[]] $InputObject = @())
@($InputObject) | % {
$result = @{}
$obj = $_
{
"webroot": "wwwroot",
"version": "1.0.0-*",
"dependencies": {
"Microsoft.AspNet.Mvc": "6.0.0-beta7",
"Microsoft.AspNet.Server.IIS": "1.0.0-beta7",
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta7",
"Microsoft.AspNet.StaticFiles": "1.0.0-beta7",
"Swashbuckle": "6.0.0-beta6",