Quantasoft Hosting
Quantasoft Hosting
C#ではマルチスレッドによる並列処理がサポートされています。1つのスレッドは他から独立した実行パスで プログラムが実行され、他のスレッドと同時に実行が可能です。 C#のクライアントプログラム(コンソール、WindowsForm、WPF)ではOS及びCLRによってアプリケーションの開始時 に1つのスレッドが作られます。この最初に作られるスレッドのことをメインスレッドと呼びます。 また自分でスレッドを作成することでマルチスレッドアプリにすることも可能です。 下にスレッドを複数起動するサンプルコードを示します。 class ThreadTest { static void Main() { // 新しいスレッドの作成(OSレベルではまだ作成されていない) Thread subThread = new Thread (WriteY); // スレッドの開始 subThread.Start(); /
C#言語&.NET(厳密にはMono)を使ってMac OS X向けCocoaアプリ(Mac App Store対応)を開発できる「Xamarin.Mac」(ザマリン・ドットマック)が昨年末(米国時間で2012年12月12日)に登場した。Xamarin.Macを使えば、使い慣れたC#でプログラムが書けるだけでなく、Monoや.NETで開発した資産をMac上のアプリでも再利用できる可能性があるのも魅力的だ。本稿では、そのXamarin.Macを用いて「簡易Webブラウザ」のサンプル・アプリを開発することを通して、「Xamarin.Macの開発は、どのようなものか?」を紹介する(ただし、Mac App Storeへのアプリ公開の方法は紹介しない)。 【コラム】MonoとXamarin社 Monoとは、.NETの実行基盤の仕様である「CLI(共通言語インフラストラクチャ)」を、LinuxやMac
About OWIN defines a standard interface between .NET web servers and web applications. The goal of the OWIN interface is to decouple server and application, encourage the development of simple modules for .NET web development, and, by being an open standard, stimulate the open source ecosystem of .NET web development tools. Getting Started These projects provide documentation and resources to help
Some of these fall into the category of general NLog (or logging) tips rather than strictly configuration suggestions. Here are some general logging links from here at SO (you might have seen some or all of these already): log4net vs. Nlog Logging best practices What's the point of a logging facade? Why do loggers recommend using a logger per class? Use the common pattern of naming your logger bas
目的 業務で現在、とても厄介なC#コードと戦っています。途方に暮れかけていましたが、TDDBC札幌で教えていただいたことから突破口が見えてきました。感謝の気持ちを表しつつ、ちょっとした現状メモです(それにしてはすごく長くてすみません)。 正確には「戦ってみた」じゃなくて、「戦い始めた」ですね。 敵のデータ どんなアプリケーションか C#で書かれた(一部C++もあるが)Windowsフォームアプリケーション。ドライバ的なところからビューアまで、かなり巨大。 とりあえず今自分が見ているところはビューアの改造とかのわりと表層的な部分。C#のみ Visual Studio 2008 Professional Edtionで開発 コードの状態 コードの質が悪すぎる。今までみたコードの中で最もひどい コピペコード多すぎ。とにかくところかまわずがんがんコピペ状態。 メソッド長過ぎ。クラスがでかすぎ。Cじ
Last updated: 2011-4-27 Translations: Chinese | Czech | Persian | Russian | Japanese Download PDF Part 1: Getting Started Introduction and Concepts C# supports parallel execution of code through multithreading. A thread is an independent execution path, able to run simultaneously with other threads. A C# client program (Console, WPF, or Windows Forms) starts in a single thread created automaticall
March 2009 Volume 24 Number 03 .NET との相互運用性 - IronRuby を使用して受け入れテストを自動化する Ben Hall | March 2009 コードは MSDN コード ギャラリーからダウンロードできます。 オンラインでのコードの参照 目次 受け入れテストとは 自動受け入れテスト ストーリー シナリオ 受け入れテストを実装する RSpec シナリオ ランナーを使用して C# オブジェクトを操作する UI の受け入れテスト 今後の予定 ほぼすべての開発者は、顧客要件が適切に伝わり、不完全な機能や不正確な機能の実装に無駄な時間を費やさずに済むことを望んでいます。明確でわかりやすい仕様書を顧客に提示し、顧客の機能要件に合致しているかどうかを確認できればすばらしいことです。そうすれば、余分な労力をかけずにまったく同じ仕様で実行し、実装を要件に照らし
Windows Power Shell は、 Windows をコマンドラインから、あるいは、 スクリプトを使って管理するために作られた新しいシェル環境です。 作られた目的のせいか、 Power Shell を解説する書籍・ウェブサイトには、 「管理者向けの TIPS、実例集」 (レジストリの値の変え方とか、WMI の呼び出し方とか) みたいな物が多かったりします。 でも、Power Shell を調べてみた感じ、 Power Shell 用のスクリプト言語や、 コマンドレットの動作・作り方など、 プログラミング的にも結構面白そうな感じなので、 その辺りを中心に話をしてみようかと思います。 (注: コマンドの実行結果など、 ページ表示の収まりをよくするため、 ところどころ省略している部分があります。 )
Test Driven Development (TDD) has been around for about a decade, and has been mainstream for at least five years now. During this time, TDD practitioners have been gradually changing and refining the methodology, the mindset, and the terminology in an effort to increase its usefulness and avoid some of the problems that newcomers often experience. Published Mar 3, 2010 The mindset and terminology
例外を投げたいとき、「この場合だとどの例外を投げるのが適切なんだろう?」と悩むことが良くあります。 すぐ出てくるのはArgumentException, ArgumentNullException, FileNotFoundExceptionぐらいで、他はパッと出てこないのでただのExceptionを投げて誤魔化しています。ここでは、自分でプログラム書いていてよく使いそうなのを一覧でまとめておきます。説明はMSDNを参考にしました。 System ArgumentException メソッドの引数が変な場合。ArgumentNullExceptionやArgumentOutOfRangeException以外の場合で変な時に使う。 ArgumentNullException 引数がnullの場合。 ArgumentOutOfRangeException メソッドの許容範囲外の値が引数として
People often ask me for guidance on how they can dynamically "re-write" URLs and/or have the ability to publish cleaner URL end-points within their ASP.NET web applications. This blog post summarizes a few approaches you can take to cleanly map or rewrite URLs with ASP.NET, and have the option to structure the URLs of your application however you want. Why does URL mapping and rewriting matter? T
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く