2007-01-01ãã1å¹´éã®è¨äºä¸è¦§
ãæ¨æºã¯ã¨ãªæ¼ç®åã¯ã"ã·ã¼ã±ã³ã¹" ãæä½ãã¾ããããå T ã«å¯¾ãã¦ã¤ã³ã¿ã¼ãã§ã¤ã¹ IEnumerable ãå®è£ ãããªãã¸ã§ã¯ãã¯ãã¹ã¦ããã®åã®ã·ã¼ã±ã³ã¹ã¨è¦ãªããã¾ããã.NET æ¨æºã¯ã¨ãªæ¼ç®åããå¼ç¨ã ã·ã¼ã±ã³ã¹ã®ãçææ¼ç®åããããããé¡ã åâ¦
ãå¼ããªã¼ãã£ã¦è¨³ããããã©ãããããã«ã¼å¤§æ´ã£ã½ãã£ã¦ï½ï½ï½ äºåæ¨ãæ§ææ¨ã¨ãå®çãã¦ãããå¼æ¨ã§ããã¨æããã ãã©ã
å ãã¿ http://blogs.msdn.com/ericlippert/archive/2007/10/17/covariance-and-contravariance-in-c-part-two-array-covariance.aspx é åã®å ±å¤æ§ã¯ã¡ãã£ã¨å£ãã¦ãã¨ããã話ã試ãã¦ã¿ã¾ããã ãã®ã³ã¼ãã¯æ£å¸¸ã«å®è¡ã§ããã§ããããï¼ã³ã³ãã¤ã«ã¨ã©â¦
Composit ãã¿ã¼ã³ã使ã£ãæ¨æ§é ã«ã¤ãã¬ã¼ã¿ãæ¸ããã¨ãã¦ããµã¨ yield ã§å帰ã£ã¦ã©ããããã ï¼ã¨ã¡ãã£ã¨èãè¾¼ãã§ãã¾ã£ãã®ã§ã¡ã¢ãããã£ã¦ãã¾ãã°ããã¼ããå帰ã ãããã¨ç´å¾ã§ãããããã¨è¦ãå帰ã«è¦ããªãç½ ã ãã£ãããªã®ã§ãã¡ã¤ã«/ãâ¦
ãµã¨ãXmlSerializer 㧠XML ã®èªã¿æ¸ãããã®ã£ã¦å®£è¨åããã°ã©ãã³ã°ã ãããã¨ãæ¸ãã¦ã¿ãããã¦ãXmlElement å±æ§ã使ã£ã¦ãXML è¦ç´ åã .NET ã®ã¯ã©ã¹åã«ãããã³ã°ãããã ã¨ãããããããããããå±æ§ã¯ .NET ç»å ´æãã宣è¨åããã°ã©ãã³ã°ã£â¦
http://msdn2.microsoft.com/en-us/library/ckzcawb8(VS.90).aspxSelect() 㨠SelectMany() ã¯ã©ãï¼
ã¡ãã£ã¨ããªãéã« PLINQ/TPL ã Volta ã International Pack ã¨ãï½ VS2008 ãåºãã°ã£ãããªã®ã«ããªããªãã ãã(^^; é ãæªæ¥ã®å¤¢ã¨æã£ã¦ãã©ã¤ãã©ãªãæ¥ã«ç®ã®åã«ãã³ã¨åºã¦ãã¦ããªãã ãæ¸æã£ã¦ãã¾ã£ã¦ã¾ããã§ãã©ãã§éã¶ãè¿·ã£ãæ«ã«æ±ºããâ¦
LINQ ã®ç·´ç¿ã« WMI ãã¿ã¨ãã£ãããããã¿ã®ããªã¨ã¼ã·ã§ã³ãããããæ¸ãã¦è©¦ãã¦ã¾ãããã¤ã³ããªã»ã³ã¹ãã¤ãã¦ããã®ãã¹ã´ã¤ã§ãããã¨ãã©ããããã§ãããææ³ã¯æ£ããã®ã«è¡¨ç¤ºããªããªã£ãããä¸åº¦ãã«ãããã°ã¾ã表示ãã¦ãããããã«ãªãã¾ãã â¦
åãã¡ãã£ãã®ã§ãããã¾ããçä¼¼ãã¡ããã¡ã£ã½ãã§ããMax ã大ããããã¨å¤§å¤ãªãã¨ã«ãªãã¾ãã ã©ãåãã¦ããã®ã ã(^^; é ãã¤ãã¦ããã¾ããâ¦ï½ using System; using System.Collections.Generic; using System.Linq; class Program { private consâ¦
http://www.google.com/trends?q=c%23%2C+VB&ctab=0&geo=all&date=all&sort=0æ¥æ¬ã ã㯠VB 大å½ï¼ Redmond 㯠C# ã«ããªãåã£ã¦ãããã§ããã
id:siokoshou:20071124 ã®ã¯ã¨ãªã¼ãå°ãã ãã¹ãããªããã¦ã¿ãã Func<object, Dictionary<int, string>, string> map = ( o, d ) => d == null ? o.ToString() : d[ ToInt( o ) ]; var query = from ManagementObject mo in ( new ManagementClass( "Win32_CacheMemory" ) ).GetInstances(</object,>â¦
VC#2008Expressè±èªçå ¥ãã¦éãã§ã¾ãããããã¥ã¡ã³ãã®ãªã³ã¯åããã²ã©ãã§ããâ¦ãRCåºãã¨ãã°ããã£ãã®ã«â¦ãæ¥æ¬èªçã ã¨ç´ã£ã¦ããããªããã¨è¶ æå¾ ã
http://www.infoq.com/news/2007/11/Functional-CSharp int[] b = Enumerable.Range( 1, 20 ).ToArray();Correct? using System; using System.Linq; class P { static void Main() { int[] a = new int[ 20 ]; for ( int x = 0; x < a.Length; x++ ) a[ x ]â¦
æ¨æ¥ã® LINQ to Object ã³ã¼ããèªããªããªãåã«(^^; ã¡ã¢ãå°ãæ¸ãæ£ããã¦ããã¾ãã IEnumerable ã LINQ to Object ã§æ±ãã«ã¯ Cast() ã OfType() 㧠IEnumerable ã«å¤æãããå¤ãããããéã¸ã§ããªã¯ã¹ãªã³ã¬ã¯ã·ã§ã³ã LINQ ã§æ±ãã«ã¯å¤æå¿ é ãâ¦
LINQ ã ãã§æ¬ãä½åãåºã¦ããã¨äºæ³ãã¦ã¾ãããæ©ãæ¥æ¬èªã®è¯ãæ¬ãä¸å欲ãããªããITãã¹ã³ãã LINQ ã®è¨äºããã¾ãæ¸ããªãã®ã¯ãLINQ ãä½ãªããªã®ãç解ããã¦ããªãããã£ã½ãã§ãããææã®ã¯ã¤ãºãè¦ã¦ããæ£è§£ãããªãããã¨ãæã£ãããLINQ â¦
æ¨æ¥ã® WMI ã® id:siokoshou:20071123#p2 ã£ã¦å¤é¨çµåã£ã¦ãã¤ãããï¼ã¨æã£ã¦ãå ¨é¨ãã®ã¾ã¾ LINQ ã«ãã¦ã¿ã¾ãããè¦å´ãããã§ãã¿ãã·ã¤ãåã« select ã®é¨åããã£ã¦ãã ããªã®ãä¸æºããã£ã¨éãã§ãã¾ããããªæ°ãâ¦ã WmiWin32CacheMemoryMessages â¦
ãã£ãããªã®ã§ LINQ ã§ã using System; using System.Management; using System.Linq; class P { static void Main() { var query = from mo in ( new ManagementClass( "Win32_CacheMemory" ) ). GetInstances().OfType<ManagementObject>() from p in mo.Properties.OfType<PropertyData></propertydata></managementobject>â¦
WMI åãã¦ä½¿ãã¾ãããMSDN ã®å®å®èªã£ã·ãã«ã¯ã©ã¯ã©ãããã©ãå®å®ä»®é¢ããã解èªæ¸ã¿ã ã£ãã®ã§å©ããã¾ããããããã¨ããããã¾ããWin32_CacheMemory ã®ææããµã³ãã«æ¸ãã¦ã¿ã¾ããã å¤ã®æå³ã®æååã¯ã©ã£ãããåããªãã®ããªããã³ããã㦠Ctâ¦
http://community.bartdesmet.net/blogs/bart/archive/2007/11/22/c-3-0-object-initializers-revisited.aspxãªãã¸ã§ã¯ãåæååã£ã¦âãããããã¤ãã Customer c = new Customer() { Name = "Bart", City = "Redmond", Age = 24 }; ä¸éå端ãªç¶æ ã¯ä½ãâ¦
æ¨æ¥ã¯æ¡å¼µã¡ã½ããã®éã®é¢ä¸å¿ã«æ¸ããã®ã§ãä»åº¦ã¯å ã®é¢ã§ãã æ¡å¼µã¡ã½ããã®ç´¹ä»è¨äºã«ããåºã¦ãã string.IsNullOrEmpty() ã§ãããããããããã¨ã«æ°ä»ãã¾ããã using System; class Program { static void Main( string[] args ) { string a = â¦
ãã¡ãã¯å¤æè¦åãªãã¦ãããããåé¡ã§ã¯ãªããã©ãåé¢ãå¼ãèµ·ããæ··ä¹±ã®ä¾ã using System; class P { static void Main() { S a = new S { Val = 0 }; Console.WriteLine( a.Val ); // 0 a.Inc(); Console.WriteLine( a.Val ); // 1 a.ExtInc(); Consoâ¦
åã®è¨äºãæ¸ãã¦ãããã£ã¨æ°ä»ãããã©(^^;ãããã¯ã¤ã¾ãã¤ã³ã¹ã¿ã³ã¹ã¡ã½ããã®åä½ãã¾ãã¦ããã§ããã ããã¡ãã£ã¨èª¿ã¹ã¦ã¿ã¾ãããToString() ã®ä¾ã¯ã¤ãã¤ããªã®ã§ãå¥ã®ä¾ã«å·®ãæ¿ãã¾ãã using System; class Program { static void Main() { Bâ¦
C#3.0 ã®æ¡å¼µã¡ã½ããã®æãã話ãæ¡å¼µã¡ã½ããã¨éçã¡ã½ããã¯æ§æã®åé¢ã ãã®éãã§ãã»ãã¯åãã ãã¨è¨ããããã¨ãå¤ããã©ãå®ã¯éãã¾ããä»æ§æ¸ã«æ¸ãã¦ã¯ãããã©ãã¯ã£ãã注æãåèµ·ãã¦ããªãã®ã§ãæ¡å¼µã¡ã½ããã®ä»æ§ã¯ãã¡ãã 念ã®ããå¼ç¨â¦
ãã¡ãã¡ã§æ¸ããã¦ã¦ãä»ããã§ããåºã¾ãããã http://msdn2.microsoft.com/en-us/vstudio/products/aa700831.aspx.NET3.5 ãã½ã¼ã¹ã³ã¼ãã LINQ ã WPF ããã¨è³ããã§ãããå®ã¯ä¸çªæå¾ ãã¦ããã®ã¯ WinForm ã®ãã¶ã¤ããã¨ã©ã¼ãåããªãããã«ãªã£â¦
http://blogs.msdn.com/charlie/archive/2007/11/12/visual-c-team-picture-fall-2007.aspxid:siokoshou:20071111:p1 ãè²¼ã£ã¦ããã¦ããã£ã¡ãåãä¸ããªãããã«ã¯ãããªããªã£ã¨ãå®æè¨å¿µã®éååçã§ãããããblog ã§ãã¤ãèªãã§ãæ¹ã ã®ãé¡ãè¦ããâ¦
EqualityComparer.Default ã¨ãããã¨æ¯è¼åãåãããªãã¨ãä¸æè°ãªã¯ã©ã¹ã§ããããããªãµãã«ãªã£ã¦ããã§ãã(monoã§ã)ãèªèº«ãç¶æ¿ããã¯ã©ã¹ãå¼·å¼ã«ä½ã£ã¦ã(^^;Equals ã¡ã½ãã㧠T ã®ãªãã¸ã§ã¯ãã null ãå¤å®ãã¦ãã¾ãããã®é¨å㯠IL ã«ã¯ bâ¦
http://d.hatena.ne.jp/nishiohirokazu/20071110/1194687711æéæ³ã¯ï¼
http://www.iunknown.com/2007/11/ironruby-talks.html
http://www.popfly.ms/users/siokoshou/NASA popflyã£ã¦ã¿ããã¯ã¾ããããã¡ãã£ã¨éããã©ããªããã¨ãã©ã表示ãããªããã¨ãããããã©ãããã¡ãã®ã¢ãã«ãªã®ã§ã
http://msdn2.microsoft.com/ja-jp/library/bb545961(VS.90).aspx manifestãã¤ãããããã«ãªãã¿ããã#èªã¿ã¥ããã®ã§ä¿®æ£ã