Skip to content

Instantly share code, notes, and snippets.

View tazlord's full-sized avatar

David Sanchez tazlord

View GitHub Profile
@tazlord
tazlord / ObservableObject.cs
Created May 14, 2025 02:47
An abstract C# class that allows subscribers of derived classes to be notified of property value changes.
using System.ComponentModel;
using System.Runtime.CompilerServices;
/// <summary>
/// Represents an object that notifies subscribers of property value changes.
/// Implements the <see cref="INotifyPropertyChanged"/> interface.
/// </summary>
public abstract class ObservableObject : INotifyPropertyChanged
{
/// <summary>
@tazlord
tazlord / ProcessAsyncHelper.cs
Last active February 1, 2024 02:08 — forked from AlexMAS/ProcessAsyncHelper.cs
The right way to run external process in .NET (async version)
using System;
using System.Diagnostics;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
/// <summary>
/// A helper class for executing external processes asynchronously.
/// </summary>
public static class ProcessAyncHelper