Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-16"?>
<?xml-stylesheet type="text/xsl" href="ActivityLog.xsl"?>
<activity>
<entry>
<record>1</record>
<time>2016/01/23 00:49:03.977</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Microsoft Visual Studio 2015 version: 14.0.24720.0</description>
</entry>
<?xml version="1.0" encoding="utf-16"?>
<?xml-stylesheet type="text/xsl" href="ActivityLog.xsl"?>
<activity>
<entry>
<record>1</record>
<time>2016/01/23 00:49:03.977</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Microsoft Visual Studio 2015 version: 14.0.24720.0</description>
</entry>
<entry>
<record>606</record>
<time>2015/06/08 17:21:05.711</time>
<type>Error</type>
<source>VisualStudio</source>
<description>Construction of frame content failed.&#x000D;&#x000A;Frame identifier: ST:0:0:{31fc2115-5126-4a87-b2f7-77eaab65048b}&#x000D;&#x000A;Frame caption: &#x000D;&#x000A;Exception details:&#x000D;&#x000A;System.ArgumentNullException: &#x000D;&#x000A;Parameter name: protocolHandler&#x000D;&#x000A; at Microsoft.XamlDiagnostics.UI.LivePropertyExplorer.Model.PropertyExplorerModel..ctor(IProtocolHandler protocolHandler, IActiveElementTracker tracker, ITelemetryLogger telemetryLogger)&#x000D;&#x000A; at Microsoft.XamlDiagnostics.Model.XamlDiagnosticsTool.GetPropertyExplorerModel(IServiceProvider serviceProvider)&#x000D;&#x000A; at Microsoft.XamlDiagnostics.Model.XamlDiagnosticsTool.CreatePropertyExplorer(IServiceProvider serviceProvider, ResourceDictionary themeDictionary, UIElement searchContentControl)&#x000D;&#x000A; at Microsoft.VisualStudio.ClientDiagnostics.XamlDiagnostics
public class Company {
public event EventHandler<LookForEventArgs> LookForPeople;
public string Name { get; set; }
public List<Person> Employees { get; set; }
public Company(string name) {
Name = name;
}
public static IList<Obj> SelectListFor<T>()
{
Type enumType = typeof(T);
if (enumType.IsEnum)
{
return Enum.GetValues(enumType)
.Cast<int>()
.Where(i => !i.Equals(0))
.Select(e => new Obj()
void Main()
{
var x = new Utils("test");
}
public class Utils
{
public static object InvokeAndCatchError(Delegate del, object parameters, params object[] optionalParameters)
{
try
import java.util.*;
public class StartUp{
public static void main(String []args){
List<MyObject> list = new ArrayList<>();
list.add(new MyObject("abc"));
list.add(new MyObject("def"));
list.add(new MyObject("ghi"));
for(int i = 0; i < list.size(); i++)
static void Main(string[] args)
{
const string source = @"
using System;
class MyClass
{
void Method()
{
var a = new MyClass();
\lstnewenvironment{code}[1][]%
{
\noindent
\minipage{\linewidth}
\vspace{0.5\baselineskip}
\lstset{style=csharp,#1}}
{\endminipage}
\lstdefinestyle{csharp}{
language=[sharp]C,
var gulp = require('gulp');
var open = require('gulp-open');
var del = require('del');
var minifyHtml = require('gulp-minify-html');
var minifyCss = require('gulp-minify-css');
var minifyJs = require('gulp-uglify');
var ngAnnotate = require('gulp-ng-annotate');
var jshint = require('gulp-jshint');
var imagemin = require('gulp-imagemin');
var size = require('gulp-size');