Skip to content

Instantly share code, notes, and snippets.

View MainWindow.xaml
<Window x:Class="TestWpfFade.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:TestWpfFade"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800"
Opacity="0.0"
Loaded="Window_Loaded"
@azureskydiver
azureskydiver / TestExecutionContext.cs
Created Dec 15, 2019
Execution Context not capturing thread id
View TestExecutionContext.cs
using System;
using System.Text;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
public class Test
{
static ExecutionContext _ec;
View GetPersonFromTextFile.cs
public partial class Form1 : Form
{
static readonly string _defaultPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "mytext.txt");
readonly PersonsRepository _repository;
public Form1()
: this(new PersonsRepository(_defaultPath))
{
}
View gist:0be58faa4d0d0ae35cafd7923f7c6a2c
public static string GetHebrewConcat(char[] charRange, string codeToPoint, Tuple<string, string, string> tupleOfStrings, string separator)
{
string[] col_OfConcatValues = { };
var charArr = tupleOfStrings.Item2.ToCharArray();
int spins = 0;
foreach (char eChar in charArr)
{
switch (HasHebrew(eChar, false, false, charRange))
{
case true:
@azureskydiver
azureskydiver / AnotherHierarchyWalker.cs
Last active Feb 22, 2019
Another hierarchy walker
View AnotherHierarchyWalker.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace AnotherHierarchyWalker
{