Skip to content

Instantly share code, notes, and snippets.

<#@ template debug="false" hostspecific="true" language="C#" #>
<#@ assembly name="System.Core" #>
<#@ assembly name="EnvDTE" #>
<#@ import namespace="System.Linq" #>
<#@ output extension=".txt" #>
<#
var dte = ((IServiceProvider)this.Host).GetService(typeof(EnvDTE.DTE)) as EnvDTE.DTE;
var runContextTest = dte.Commands.Item("{1E198C22-5980-4E7E-92F3-F73168D1FB63}", 885);
// ==UserScript==
// @name tugino renkyu for Opera10.10
// @include http://misc.tokyoenvious.net/holidays/holidays.html
// ==/UserScript==
(function() {
if (parseFloat(opera.version()) >= 12) return;
if (!window.console) {
@miya2000
miya2000 / UnitTest1.cs
Created August 5, 2015 10:48
protected access modifier difference between Java and C#.
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
@miya2000
miya2000 / CodeFixProvider.cs
Created August 5, 2015 16:27
nest ".ValueChanged.cs" file.
[ExportCodeFixProvider(LanguageNames.CSharp, Name = nameof(ValueChangedGaneratorCodeFixProvider)), Shared]
public class ValueChangedGaneratorCodeFixProvider : CodeFixProvider
{
// snip.
public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
{
var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
var diagnostic = context.Diagnostics.First();