Skip to content

Instantly share code, notes, and snippets.

@ufcpp
ufcpp / HasFlagBenchmark.cs
Created March 31, 2018 03:02
Enum.HasFlag(Enum) のパフォーマンスの測定
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Toolchains.CsProj;
using BenchmarkDotNet.Columns;
using BenchmarkDotNet.Diagnosers;
using BenchmarkDotNet.Exporters;
using BenchmarkDotNet.Loggers;
using System;
@Nia-TN1012
Nia-TN1012 / CaptionButtonConverter.cs
Last active June 30, 2020 19:10
Window.ResizeModeと連動するカスタムキャプションボタンを使用したウィンドウです。。(For Qiita : [C# / WPF] WindowChromeを利用したカスタムウィンドウで、Window.ResizeModeと連動するキャプションボタンを作ってみよう)
using System;
using System.Windows;
using System.Windows.Data;
using System.Globalization;
namespace CustomCaption {
/// <summary>
/// ウィンドウのリサイズモードに応じて最大化・最小化ボタンの表示・非表示を設定します。
/// </summary>