技術者派遣の技術日誌ブログ

March 29, 2009

Csharp Code Samples Blog – Information, Comments, Reviews …

,ASP.NET,JAVASCRIPT,JQUERY

C# code samples is a blog for articles related to programming in C# using the Microsoft .net framework.

C# code samples is a blog for articles related to programming in C# using the Microsoft .net framework. The articles add… … Most WCF services hosted in a live environment if not configured for handling heavy simultaneous requests give a Denial of Service Error, better known as DoS attacks. To prevent these from happening we have to configure the throttling behavior and so. … A blog for programming tutorials for C/C++, C#.Net, ASP.Net and much more. Here… …

Read more from the original source:
Csharp Code Samples Blog – Information, Comments, Reviews …

March 18, 2009

A guide to Silverlight 3 new features

,ASP.NET,JAVASCRIPT,JQUERY

It also provides end-to-end support for common tasks such as data validation, authentication and roles by integrating with Silverlight components on the client and ASP.NET on the mid-tier.

It also provides end-to-end support for common tasks such as data validation, authentication and roles by integrating with Silverlight components on the client and ASP.NET on the mid-tier. One paragraph cannot do this framework justice, … Binary XML support is introduced which enables Silverlight to communicate with Windows Communication (WCF) services using the Binary XML data format in addition to regular text XML. The use of the Binary XML format results in smaller …

Visit link:
A guide to Silverlight 3 new features

[HOW TO] Visual C# .NET で、QueryPerformanceCounter を使用してコードの時間を計測する方法

Filed under: .NET Framework, C# — Tags: , , , — citiszo @ 10:49 am

パフォーマンス ボトルネックを識別するためにコードをテストするときは、システムが提供する最も高分解能のタイマを使用します。この資料では、QueryPerformanceCounter 関数を使用して、アプリケーション コードの時間を計測する方法を順を追って説明しています。

注 : JScript .NET で Microsoft Windows API 関数を呼び出すことはできません。
先頭へ戻る
デモ アプリケーションのビルドと実行
Visual Studio .NET を起動して、新しい Visual C# コンソール アプリケーションを作成します。
デフォルトのコードを次のコードに置き換えます。これは 100 回のインクリメント操作の時間を計測します。

March 17, 2009

LINQを使ってフォルダやファイルの情報を集積する

Filed under: ADO.NET, ALL, LINQ — Tags: , , , — strmozo @ 8:57 pm

久しぶりにLINQ(LINQ to Object)ネタです。
ここ2、3日で知り合いの方のBlogに続けてこのような話があがってたもので、ちょっと試したことまとめておこうかと(w

LINQ to Objectで一番重要なのは、操作しようとするデータをいかにしてIEnumerableな形にするか、ということだと思っています。
特にフォルダやファイルといった階層構造のデータを扱う場合、そこさえできてしまえば後はどうにでもなります。
そんな意味で、すごい、と思ったのが@ITの記事に載っていた以下のコードです。

IEnumerable fileList = Directory.GetFiles(startFolder, “*.*”, SearchOption.AllDirectories).Select(x => new FileInfo(x));

このコード自体Selectメソッドを使ったLINQのコードなのですが、この1行でstartFolderに指定したフォルダ以下の全てのファイルをサブフォルダ配下のものを含めてFileInfoオブジェクトとしてIEnumerableなものにしてしまっています。
FileInfoオブジェクトであればそのファイルのすべての情報にアクセスできますから、あとはここでつくったfileListに対してどのような操作を行うかを考えるだけでよい、ということになります。

ではまず最初に、このコードをベースに、指定したフォルダが使用している容量を計算してみましょう。

—————————————————————————————————————–
using System;
using System.Linq;
using System.IO;

class Program
{

March 13, 2009

Expression Builderの使い方といくつかのサンプル実装

Filed under: .NET Framework, ALL, Asp.Net — Tags: , , , — Sayuri @ 10:58 am

Using Expression Builders in ASP.NET

skmExpressionBuilders – A Suite of Custom Expression Builder Classes

Expression Builderクラスの存在自体を知らなかったんですが、.NET Framework 3.0で導入されてたみたいですね。
3.0ではASP.NETの拡張は行われていない、と思ってたんですけど、こんなひっそりした追加が。。。

独自に実装は必要になりますが、内部的なデータを毎回同じコードを記述してコントロールのプロパティにセットするよりはずっとすっきりした実装ができるようになると思われます。
いろいろ使い道はありそうなので覚えておこうっと。

March 10, 2009

SharePoint Online とカスタマイズ/開発

Filed under: .NET Framework, Asp.Net, SharePoint — Tags: — AspAnn @ 5:21 pm

こんにちは。

SharePoint Online 含む Business Productivity Online Suite (BPOS) が、日本も含めトライアル開始されました。 「Online サービス うんぬんって、いったい何 ?」、「その位置づけは ?」 という方のために、以下に簡単にご紹介します。

まずは、トライアル版を使ってみる

Brazilian Portuguese UML plugin for NetBeans 6.5

Filed under: ALL — Tags: , — Shotalow @ 12:24 pm
UML plugin for Brazilian Portuguese has been released for NetBeans 6.5! Brazilian Portuguese community worked with us and localized them. Thank you for your contribution!

You can get it via Tools > Plugin. Find UML in Available Plugins section.
NetBeans UML
NetBeans IDE itself and the plugin are fully localized into Brazilian Portuguese!

NetBeans UML

March 9, 2009

IDataErrorInfoの考え方を学んでおこう

Filed under: .NET Framework — Tags: , — Sayuri @ 9:55 pm

記述されている内容はWindowsフォームにおけるエラーチェックの話なんですが、この中でIDataErrorInfoをどう作るか、という話がまとめられています。
IDataErrorInfoはASP.NET MVCで利用できるので、このあたりきっちり読み込んでおくといいことあるんじゃないかな、と思ってます。

#IDataErrorInfoは.NET Framework 3.5で導入された、って書いてあるけど、このインタフェースそのものは1.0のころからあったみたいです

March 4, 2009

ASP.NET MVC Tip: Add a new T4 template for making MVCContrib Grid …

,ASP.NET,JAVASCRIPT,JQUERY

Shiju is focusing on Net 4.0, C# , ASP.Net MVC, Entity Framework, Windows Azure, REST, WCF , IoC/Unity and DSL tools. Shiju holds number of Microsoft certifications including MCP, MCAD, MCTS, and MCPD: Web. …

Shiju is focusing on Net 4.0, C#, ASP.Net MVC, Entity Framework, Windows Azure, REST, WCF, IoC/Unity and DSL tools. Shiju holds number of Microsoft certifications including MCP, MCAD, MCTS, and MCPD: Web. … templates within the “Add Controller” and “Add View” dialog. if you want override the global T4 tempates at project level, just copy the C:Program FilesMicrosoft Visual Studio 9.0Common7IDEItemTemplatesCSharpWebMVCCodeTemplates” folder into your ASP.NET MVC …

Here is the original post:
ASP.NET MVC Tip: Add a new T4 template for making MVCContrib Grid …

Powered by WordPress