Skip to content

Instantly share code, notes, and snippets.

<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 December 15, 2019 02:28
Execution Context not capturing thread id
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;
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))
{
}
@azureskydiver
azureskydiver / gist:0be58faa4d0d0ae35cafd7923f7c6a2c
Created November 9, 2019 02:07
Refactoring of GetHebrewConcat()
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 February 22, 2019 11:43
Another hierarchy walker
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace AnotherHierarchyWalker
{