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] 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 コンストラクタを呼び出さずにインスタンス化

clock September 16, 2008 13:21 by author citiszo
通常、インスタンスを生成する際には必ずコンストラクタが呼び出されます。 でも実は、コンストラクタを実行せずにインスタンスを生成することができます。 [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


【Javascript】HTML や ASPX と対になる JS ファイルの書き方

clock September 11, 2008 10:11 by author
最近、というか今日から、HTML や ASPX と対になる JS ファイルの書き方を変えてみた。 こんな感じ。 [More]

Be the first to rate this post

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


【Tips】スレッド内で発生した例外 - System.Timers.Timer

clock September 10, 2008 12:47 by author citiszo
では、System.Timers.Timerを使った非同期処理の場合はどうなるんだろうか? この Timerもスレッドが生成されるので、同じ動きだろうか? [More]

Be the first to rate this post

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


[How to]Dispose(bool disposing) の override

clock September 10, 2008 12:24 by author
http://msdn2.microsoft.com/en-us/library/fs2xkftw.aspx のコードをみて、以下のように書いたら、base.Dispose() が呼ばれない可能性があるということで、FxCopの警告が出た。 protected override void Dispose(bool disposing) { if(!this.disposed) { try { if(disposing) { addedManaged.Dispose(); } this.disposed = true; } finally {... [More]

Be the first to rate this post

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


IEnumeratorは、IDisposableを実装してる

clock September 10, 2008 12:20 by author
IEnumeratorは、IDisposableを実装してる [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]Nullable型のType-Nullableかどうかを判断する

clock September 10, 2008 11:43 by author
int? a = 10; Type type = a.GetType(); Console.WriteLine(type.Name); を実行すると、 Int32 って表示されるんだ。 Nullable`1 って表示されるのかと思った。 当然なのだが、 a = null; type = a.GetType(); だと、 「オブジェクト参照がオブジェクト インスタンスに設定されていません。」 と、例外が発生する。 そういう意味では、Int32と表示されるのは。理にかなっているのかな? ローカル変数 int? x が宣言... [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

<<  October 2008  >>
SuMoTuWeThFrSa
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

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