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 static class EnumerableExt | |
| { | |
| public static IEnumerable<T> SkipLast<T>(this IEnumerable<T> source) | |
| { | |
| if (source == null) | |
| { | |
| throw new ArgumentNullException(nameof(source)); | |
| } | |
| return SkipLastCore(); |
| { | |
| "AttributesTolerance": 1, | |
| "KeepFirstAttributeOnSameLine": true, | |
| "MaxAttributeCharatersPerLine": 0, | |
| "MaxAttributesPerLine": 1, | |
| "NewlineExemptionElements": "RadialGradientBrush, GradientStop, LinearGradientBrush, ScaleTransfom, SkewTransform, RotateTransform, TranslateTransform, Trigger, Condition, Setter", | |
| "SeparateByGroups": false, | |
| "AttributeIndentation": 0, | |
| "AttributeIndentationStyle": 1, | |
| "RemoveDesignTimeReferences": false, |