An analyzer that a property notifies INPC correctly. Given the following code:
public class C : INotifyPropertyChanged
{
private int p;
public event PropertyChangedEventHandler PropertyChanged;
public class SplitPanel : Panel | |
{ | |
private double[] positions = Array.Empty<double>(); | |
protected override Size MeasureOverride(Size availableSize) | |
{ | |
if (this.positions.Length < this.InternalChildren.Count) | |
{ | |
this.positions = new double[this.InternalChildren.Count]; | |
} |
namespace Snappy.AlphaVantage | |
{ | |
using System; | |
using System.Collections.Immutable; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
public sealed class AlphaVantageClient : IDisposable | |
{ |
<Window.Resources> | |
<Style TargetType="Button"> | |
<Setter Property="Padding" Value="6,4" /> | |
<Setter Property="Background" Value="#0073CF" /> | |
<Setter Property="Foreground" Value="White" /> | |
<Setter Property="BorderBrush" Value="#0073CF" /> | |
<Setter Property="BorderThickness" Value="2" /> | |
<Setter Property="HorizontalContentAlignment" Value="Center" /> | |
<Setter Property="VerticalContentAlignment" Value="Center" /> | |
<Setter Property="Template"> |
Programming Language: Objective CorporateSpeak++ | |
Inspired by the constant corporate speak I have had the pleasure of hearing, I have undertaken the arduos task of developing the next generation of programming language: | |
Objective CorporateSpeak++ | |
In this essay, I will demonstrate the usage of some of the programming idioms: | |
Classes | |
Value-Added Class Foo { |
SyntaxFactory.MethodDeclaration( | |
attributeLists: default, | |
modifiers: default, | |
returnType: SyntaxFactory.PredefinedType( | |
keyword: SyntaxFactory.Token( | |
leading: default, | |
kind: SyntaxKind.VoidKeyword, | |
trailing: SyntaxFactory.TriviaList(SyntaxFactory.Space))), | |
explicitInterfaceSpecifier: default, | |
identifier: SyntaxFactory.Identifier( |
SyntaxTriviaList Comment() | |
{ | |
return SyntaxFactory.TriviaList( | |
SyntaxFactory.Whitespace(" "), | |
SyntaxFactory.Trivia( | |
SyntaxFactory.DocumentationCommentTrivia( | |
kind: SyntaxKind.SingleLineDocumentationCommentTrivia, | |
content: SyntaxFactory.List( | |
new XmlNodeSyntax[] | |
{ |
public struct Temperature : IEquatable<Temperature> | |
{ | |
public Temperature(double celcius) | |
{ | |
this.Celcius = celcius; | |
} | |
public double Celcius { get; } | |
public static bool operator ==(Temperature left, Temperature right) |
public class Linx | |
{ | |
[Test] | |
public void Select() | |
{ | |
var ints = new[] { 1, 2, 3 }; | |
var squares = ints.Select(x => x * x); | |
CollectionAssert.AreEqual(new[] { 1, 4, 9 }, squares); | |
} |