- Windowsで使えるとても便利なファイラ。とても多機能
- 日本語にもデフォルトで対応しており、メニューなども日本語で表示可能。
- http://freecommander.com/en/summary/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var t1Result = 0; | |
| var t2Result = 0; | |
| var t1 = Task.Run(() => | |
| { | |
| Thread.Sleep(TimeSpan.FromSeconds(1)); | |
| Interlocked.Increment(ref t1Result); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Samples.MsBuildExec | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Threading; | |
| using System.Threading.Tasks; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ReSharper disable PossibleInvalidOperationException | |
| namespace WpfViewAnotherThread | |
| { | |
| using System; | |
| using System.Diagnostics; | |
| using System.Runtime.InteropServices; | |
| using System.Threading; | |
| using System.Windows; | |
| using System.Windows.Interop; | |
| using System.Windows.Threading; |
以下のようにする
<Compile Include="xxxxxx.cs">
<DependentUpon>xxxx.cs</DependentUpon>
<SubType>Code</SubType>
</Compile>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // DependencyPropertyは、デフォルト値の指定を宣言時に行うことが | |
| // できるが、デフォルト値は全てのクラスで同じインスタンスが使われる。 | |
| // そのため、Listのようにスカラ値ではないオブジェクトの場合は、一つのデフォルト値用 | |
| // インスタンスが共有されるため、インスタンスを作成するたびに内部のカウントがどんどん増えていってしまう。 | |
| // これを防ぐには、コンストラクタできっちり初期化する必要がある。 | |
| // (http://stackoverflow.com/questions/3214839/multiple-user-controls-share-collection-dependency-property) | |
| // (http://blog.okazuki.jp/entry/2014/08/17/220810) | |
| // 例) | |
| SetValue(XXXXProperty, new ObservableCollection<T>()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace WpfApplication6 | |
| { | |
| using System.Linq; | |
| using System.Windows; | |
| using System.Windows.Controls; | |
| using System.Windows.Media; | |
| using System.Collections.ObjectModel; | |
| using System.ComponentModel; | |
| using System.Runtime.CompilerServices; |
画面でなんらかの条件により、背景色を変えたりする場合に Colorオブジェクトをリソースなり要素内のスタイルなりに 定義すると思いますが、そのときに
<Color R="255" G="0" B="0"/>とすると反映されません。
-
ユニットテスト内でアサーションするためのクラスは3つある。
- Assertクラス
- CollectionAssertクラス
- StringAssertクラス
-
参考情報リソース