2009-11-01ãã1ã¶æéã®è¨äºä¸è¦§
å æ¥è²·ã£ãæ¸ç±ãèªã¿ãªãããã¡ã¾ã¡ã¾ã³ã¼ããæ¸ãã¦ããã®ã§ããã private void OldCode() { // æ¸ç±ã®ã³ã¼ã blobStorage = blobStorage.Create(StorageAccountInfo.GetDefaultBlobStorageAccountFromConfiguration()); blobContainer = blobStorage.Getâ¦
More Effective C#ãèªãã§ãã¦ããµã¨usingã®ç¥ããªã使ãæ¹ãçºè¦ã using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace UsingSample { class Foo : IDisposable { public void Dispose() { Console.WriteLâ¦
æ¬å±ã«åºããã¦æè¡æ¸ãä½åãç©è²ããã¼ã³ã¢ã¦ãä¸ã¯æè¡æ¸ã³ã¼ãã¼ã«è¿å¯ããããªãã£ãã®ã§ãè¯ãå¾åã§ããMore Effective C#ä½è : Bill Wagner,é·å°¾é«å¼åºç社/ã¡ã¼ã«ã¼: ç¿æ³³ç¤¾çºå£²æ¥: 2009/12/01ã¡ãã£ã¢: 大åæ¬è³¼å ¥: 9人 ã¯ãªãã¯: 140åãã®ååãâ¦
C#ã®å ´åãå¤éç¶æ¿ã¯ã¤ã³ã¿ãã§ã¼ã¹ã使ããã¨ã«ãªãã¾ãããå®è£ ã¯ã©ã¹ã¸ã®å§è²ãæ¸ãã®ãã¡ãã£ã¨é¢åã§ããä¸æ¹ãPythonã¯å®è£ ã®å¤éç¶æ¿ãã§ããã®ã§ãããå©ç¨ãã¦å§è²ã®ææ¸ããææãã§ããªãã試ãã¦ã¿ã¾ãããã¾ãã¯ãå¤éç¶æ¿ãããã¤ã³ã¿ãã§ã¼â¦
IronRubyã¯Î±æ代ããå¼ã£ã¦ãã¾ãããããã¼ã¸ã§ã³ãä¸ãããã³ã«ãã¹ãã£ã³ã°æ¹æ³ãå¤æ´ããã¦ãã¾ãããRCã«ãªã£ãã®ã§ããããæçµçã ã¨æãããã®ã§ãããã©ã¼ãªãã§ããã(^^;ã¦ãã¨ã¼ãªrubyã®ã¯ã©ã¹ã class Foo def bar puts 'baz' end def add(x, yâ¦
Windows Azureãå¼ã£ããã¨ããªãã£ãã®ã§ãã¡ãã£ã¨è©¦ãã¦ã¿ã¾ãããSilverlightã§ä½ã£ããµã³ãã«ãã©ã£ãã¦ã¿ããããªï¼ã»ã»ã»ã¡ãã£ã¨ãã¯ãªã¾ããã(^^; Google Gadgetsã¨ãã¦è²¼ãä»ãã¦ãã¾ããã³ã¼ãã¯XAMLã®ã¿ããã¡ããã¹ã¼ãã¼preè¨æ³ãåãã¦ä½¿ã£â¦
ç§ã®èª¿ã¹ãã®(MSç³»æè¡æ å ±)ã®å ´åãgoogleãããbingã®æ¹ãè¯ãçµæãè¿ããã¨ãå¤ããæè¿ã¯ãã£ã±ããbingã使ã£ã¦ããããã¾ããBing API 2.0ã®ãªãã¡ã¬ã³ã¹ãè¦ããä½ããé¢ç½ããã¨ãã§ããããªã®ã§ãã¡ãã£ã¨å¼ã£ã¦ã¿ã¾ãããã¨ã¯è¨ã£ã¦ãè±èª->æ¥æ¬â¦
ã¤ã³ã¯ãªã¡ã³ãããã¯ãªã¡ã³ãæ¼ç®åã§ãå¼ã³åºããã¦ç´ æµãªã®ã§ããã using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; using System.Dynamic; namespace DynamicSample { class MyDynaâ¦
Silverlight4ã®Î²ãåºã¦ããã®ã§æ©éã¤ã³ã¹ãã¼ã«ããã¤ã¼ã«ãã¦ã¹ã«å¯¾å¿ãããããã®ã§å®é¨åãã¦ãã¨ã¼UI
.NET4.0ã§è¿½å ãããExpandoObjectã¯ã©ã¹ã使ãã¨å®è¡æã«ã¡ã³ãã¼ã®è¿½å ãåé¤ãåºæ¥ã¾ãã using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Dynamic; namespace DynamicObjectSample { class Prograâ¦
ä¹ ã ã«mono meetingã«åå ãmonoã®è©±é¡ãã»ã¨ãã©ç¡ãã£ãããæåã³ã¼ãé¢é£ã®è©±é¡ã«æµãã¦è¨ã£ããã¨ããã¤ãéãã®ãã¨ã£ã¦ãmono meetingãããé°å²æ°ã§ãã(ç¬)ã
Download Bing Maps Silverlight Control SDK from Official Microsoft Download Center Silverlightç¨ã®BingMapsã³ã³ããã¼ã«ããªãªã¼ã¹ãããã®ã§ãåå¼·ãã¦ãç°¡åãªãµã³ãã«ãä½æãã¦ã¿ã¾ãããé¡ã¯ã³ã¬ã âããã¹ãããã¯ã¹ã«ãã¼ã¯ã¼ã(ä¾ãã°æ±äº¬ã¿ã¯â¦
æåã®ä¸äººãããå°æ°ã®ã¦ã¼ã¶ãã»ã»ã»ãã£ã¨ä¸äººï¼(^^;
â»ä¸çºãã¿ã§ããæ¬æ°ã§èªã¾ãªãããã«ãã¦ãã ããã(^^;lambdaå¼ã§å帰å¼ã³åºãããã«ã¯ãå ã«å¼ãæ ¼ç´ããå¤æ°ãåæåããå¿ è¦ãããã¾ãã using System; namespace LambdaSample { class Program { static void Main(string[] args) { // åèµ·å¼ã³åºãâ¦
dynamicã£ã¦ã¡ã½ããã®æ»ãå¤ã«ãæå®ã§ãããã§ããã using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DynamicFuncSample { class Program { public static dynamic Func(int n) { // å¶æ°ãªãintãå¥â¦
ãã¾ã¾ã§ä½æ ãç¨æããã¦ããªãã£ãã¿ãã«ããé°ã§ç¬èªã®PairãããTupleã沢山ä½ãããã¨æãã¾ãã using System; namespace TupleSample { class Program { static void Main(string[] args) { // ã¿ãã«ã®è¦ç´ ã¯7㤠var t1 = Tuple.Create(1, 2, 3, 4, â¦
ADO.NETã使ã£ã¦ãã¦DataTableããæ軽ãªã¡ã¢ãªãã¼ã¿ãã¼ã¹ã¨ãã¦ä½¿ãããã¨ã«æ°ã¥ãã¦å¥½ãã§ä½¿ã£ã¦ããã®ã§ãããDBç¨é以å¤ã«ä½¿ã£ã¦ããã¨ãæã ãå«ãããªåé¡ã«ã¶ã¤ããäºãããã¾ããä¸ä¾ã¨ãã¦ãã½ã¼ãã®åé¡ãããã¾ãã
dynamicã®ééã£ã使ãæ¹ - å£ã®åããå´ - ãã¾ãã«.NET㪠æéããªãã£ãã®ã§ ããã©ã¼ãã³ã¹ã¯æå¾ ã§ããªãã¯ãã»ã»ã» ã¨ãè¶ãæ¿ãã¦ãã¾ãããè¨æ¸¬ããã¨ãããdynamicçã¯intå°ç¨ãã4.5åãããé ãã£ãã§ã(ä¾ã§æ¸ããSumã®å ´å)ã
Life is beautiful: Python Hack : åãã°åãã»ã©ãããããªãã¯ãã¼ã¸ã£ã®è©± ãã¡ãã®è¨äºãèªãã§C#ã§ãåºæ¥ããªããã£ã¨å®é¨åã using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; naâ¦