IIS7でURLリライトモジュールを利用したときのPostback先の指定

clock November 2, 2008 21:52 by author citiszo
IIS7ではURLリライトモジュールが提供されていて、URLの書き換えが容易に行えるようになっています。 ただし書き換えを行った後でPostbackが起きると、書き換えられた後のURLになってしまいます。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[C#] Nullable 型のボックス化

clock October 9, 2008 12:26 by author
窓際プログラマーの独り言 -C#の話題を中心に:Nullable型のType より int? a = 10; Type type = a.GetType(); Console.WriteLine(type.Name); を実行すると、 Int32 って表示されるんだ。 a = null; type = a.GetType(); だと、 「オブジェクト参照がオブジェクト インスタンスに設定されていません。」 と、例外が発生する。 へー、そんな動きするんですね。 ちょっと調べてみましたところ、CLR の動作による... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[ .NET ] .NET Framework JIT 最適化にも負けずに呼び出し元のメソッドを取得する方法

clock October 9, 2008 12:04 by author
StackFrame クラス (System.Diagnostics) を使用すると、呼び出し元メソッドを取得することができる。しかし、Release ビルドされたアセンブリでは JIT 最適化により呼び出し元メソッドがインライン化されている可能性がある。 例えば、次のコードの実行結果を Debug ビルドと Release ビルド (非デバッグ実行) とで比較すると一目瞭然だ。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


【 .NET ] Windows Communication Foundation 】SOAP メッセージの検証・変更を行うための PowerShell 関数

clock October 8, 2008 16:08 by author citiszo
SOAP メッセージの検証・変更を行うための PowerShell 関数を作成しました。 【 Set-MessageInspector 関数 】 WCF クライアントが要求メッセージを送信する前、応答メッセージを受信した後の 2 箇所に独自の処理を追加します。 追加した処理からは、要求メッセージまたは応答メッセージの検査・変更を行うことができます。 これにより、例えば、SOAP メッセージをログに記録することができます。 [ パラメータ ] ・target SvcUtil.exe が生成したクライアントクラス ( ClientBase ジェネリッククラスの派生クラス ) ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Visual Studio 2010 & .NET Framework 4.0

clock October 6, 2008 21:32 by author
次の Visual Studio と .NET Framework のバージョンは、Visual Studio 2010 と .NET Framework 4.0 になるとのこと。 気になるのは、.NET Framework 4.0 の CLR のバージョンがどうなるかですね。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[ .NET ] ASP.NET セッションステートの利用方法を模索中

clock October 5, 2008 12:14 by author
最近、セッションステートの上手い利用方法を模索してます。 CodeZine に「ASP.NETのセッションをタイプセーフに取り扱うクラスの作成」という記事が載ってましたが、この方法は僕的にちょっと馴染めなかったもので。 以下、現時点での考えをメモしときます。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[HowTo][IIS][ .NET ] Network Serviceアカウントに適切な権限を付加する

clock October 2, 2008 16:56 by author
IIS6.0では、ワーカープロセスのアカウントとして Network Service アカウントが使用されます。 このアカウントはファイル・ディレクトリへのアクセス権などが制限されていて、ログファイルを出力することすらできません。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[.NET] WindowsIdentity.GetCurrent と Thread.CurrentPrincipal

clock September 17, 2008 19:19 by author
今まで同じものだと思ってた。 ( WindowsIdentity と IPrincipal の違いは置いといて。) それぞれ違うユーザー情報を返してきた時は驚いた。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[ .NET ] .NET Framework VB の RaiseEvent アクセサの問題点

clock September 14, 2008 19:23 by author
とりこびとさんの記事を読んでいて、そういえば VB のイベント定義って C# と違うんだよなぁと思い出したことがきっかけで、久々に VB のコードを書いてみました。そしたら、ちょっとした問題に気づきました。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


【Javascript】JavaScriptでのOOP

clock September 11, 2008 13:42 by author
JavaScriptはオブジェクト指向言語である。 ただし、”クラスベース”のオブジェクト指向言語 ( C#やJavaなど ) ではなく、”プロトタイプベース”のオブジェクト指向言語である。 以下、JavaScriptでのOOPについての簡単な解説。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


【 .NET 】【 C# 】コーディング俺規約 - usingブロックとreturn

clock September 11, 2008 13:39 by author
何かと言うと、usingブロック内で得た値を戻り値で返す場合です。 例えば、 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[C Sharp]C#の文字列リテラルを正規表現で

clock September 10, 2008 12:19 by author
C#の文字列リテラルを正規表現で [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[How to]ArrayList, Hashtableよりはジェネリック・クラスを

clock September 10, 2008 10:21 by author
このブログのアクセス解析でどのキーワードで検索されたかを見てみると意外とArrayListやHashtableで検索されていたりする。 Visual Studio 2005以降を使っているのならば、是非。List, Dictionaryを使ってほしいものだ。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[C sharp]GetEnumerator() vs. GetEnumerable()

clock September 9, 2008 22:31 by author citiszo
C#で、 public class MyClass { public IEnumerable<int> GetEnumerator() { yield return 1; yield return 2; yield return 3; yield return 4; } } というコードを書けば、 MyClass mc = new MyClass(); foreach ( int i in mc.GetEnumerator() ) { Console.WriteLine(i); } と foreach 文が書ける。最も... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[C Sharp]DataSetのカラムで列挙型を扱うには

clock September 8, 2008 12:30 by author
型付DataSetのテーブルのカラムの型を、int ではなく、独自の列挙型にするには、2つの方法がある。 ひとつは、型付DataSetの定義を行う場合に列のデータ型を列挙型に指定する方法。 これは、デザイナー画面で、DataTypeプロパティの値を System.Int32 などから、独自の型 Gushwell.Genderなどを指定してあげればよい。 ドロップダウンリストには現れないので、手入力になる。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Search

Calendar

<<  November 2008  >>
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

Archive

Tags

Categories


Blogroll

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2008

    Sign in