タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

csharpに関するyouheinittaのブックマーク (7)

  • C#でインクリメント/デクリメント演算子をオーバーロードする際の注意点 - ぬいぐるみライフ?

    C++では前置・後置で++/--のオペレータオーバーロードを別々に行う必要があるけど、C#の場合前置と後置でメソッド定義を別々にすることができない。 以下はMSDNライブラリからの引用。 operator ++ または operator -- の実装は、後置表記または前置表記のいずれを使っても呼び出すことができます。2 つの表記に対して演算子を個別に実装することはできません。 7.6.5 前置インクリメント演算子と前置デクリメント演算子 (C#) ということは、前置と後置で個別のメソッド定義ができないんじゃ、それぞれの戻り値の差別化はどうすればいいの?と疑問に思ったので調べてみた。 MSDNライブラリの説明 以下はMSDNライブラリによる前置・後置インクリメント/デクリメントの処理手順の説明。 ++x or --x x を評価して変数を生成します。 x の値を引数として、選択された演算子を

    C#でインクリメント/デクリメント演算子をオーバーロードする際の注意点 - ぬいぐるみライフ?
  • C# 4.0 - ++C++; // 管理人の日記

    http://weblogs.asp.net/pgielens/archive/2008/10/27/the-future-of-c-4-0.aspx http://code.msdn.microsoft.com/csharpfuture ちゃんと、VS 2010 でのコンパイルに関する話がちらほらあるんで、VS 2010 に C# 4.0 コンパイラ同梱なのかな。 やべぇ、見るもん多い。C# 4.0 のドキュメント → Azure のドキュメント → Azure SDK 入れてみる → VS 2010 入れてみる → C# 4.0 触ってみるの順かなぁ。 New features in C# 4.0 とりあえず、ドキュメント流し読み。 細かい話はいずれ http://ufcpp.net/study/csharp に書くとして、概要を。 新機能は3つ。 dynamic lookup 名前付

    C# 4.0 - ++C++; // 管理人の日記
  • C# Station: C# Tutorial - Introduction

    Copyright © 2000-2008 C# Station, All Rights Reserved Introduction: Welcome to the C# Station Tutorial.  This is a set of lessons suited for beginning to intermediate programmers or anyone who would like to gain familiarity with the C# programming language.  These lessons will help you get a quick head-start with C# programming.  To get started, you will need a compiler and an editor. Th

  • visual_studio.vimを入れてみた - 物置き

    visual_studio.vimは、vim上から別プロセスで起動したVisualStudioを操作するプラグイン。 VisualStudio2003,2005,2008に対応しているらしい。 インストールには、Python for Windows extensionsが必要。 インストールすると、GVimのメニューに「VisualStudio」という項目が追加される。 ここからいろいろな操作を行う。 もちろん、個々の機能に対するキーマッピングも定義されている。 ちょっと使ってみたところ、いくつかの機能が期待通りに動作しないのだけど、 コンパイル/ビルドをvim側から実行できるのはなかなか便利。 メニュー項目の説明 GetFile : VisualStudio側で表示しているファイルをバッファに読み込む PutFile : 現在のバッファをVisualStudio側で表示する。 TaskL

    visual_studio.vimを入れてみた - 物置き
  • Trace and debug - C#

    This article describes how to trace and debug in Visual C# and provides some sample steps to explain related information. Original product version:   Visual C# Original KB number:   815788 Summary For a Microsoft Visual Basic .NET version of this article, see Use Trace and Debug classes in Visual Basic .NET. This article refers to the .NET Framework Class Library namespace System. Diagnostics and

    Trace and debug - C#
  • C# の特徴(C++、Java 利用者向け)

    概要 C# 1.0 は、第一印象としては「Java のぱくり?」と言った感じに見えるのですが、 実際には「JavaC++ と VB のいいところを集めてきたような言語」と言った感じです。 (また、C# 2.0、3.0、… と進歩するにつれ、既存言語の焼き直しにとどまらない斬新な機能が追加されています。) ここではその C# の特徴的な機能をいくつか紹介していきます。 注意: C# 1.0 当時の「特徴」です。 2.0 以降の追加機能については、 「C# 2.0 の新機能」、 「C# 3.0 の新機能」、 「C# 4.0 の新機能」、 「C# 5.0 の新機能」、などを参照してください。 ガーベジコレクション ガーベジコレクション(Garbage Collection: ごみ集め) とは不要になったメモリを自動的に破棄するための機構です。 オブジェクト指向プログラミングの特徴である、

    C# の特徴(C++、Java 利用者向け)
  • Vim as a refactoring tool and some examples in C sharp

    Please review this tip: This tip was imported from vim.org and needs general review. You might clean up comments or merge similar tips. Add suitable categories so people can find the tip. Please avoid the discussion page (use the Comments section below for notes). If the tip contains good advice for current Vim, remove the {{review}} line. You can use Vim as a refactoring tool. The advantages are:

    Vim as a refactoring tool and some examples in C sharp
  • 1