ãTry! C# vNextãã¨ãããã¨ã§ã次æC#ã®æ°æ©è½ãå°ããã¤è©¦ãã¦ããããã¨æãã¾ããã¾ãæåã¯èªåå®è£ ããããã£åæåå (= Auto-property initializers) ã§ããããã¾ã§ã¯ã¡ã³ãã¼å¤æ°ã®åæåã¯ã¯ã©ã¹å®£è¨ã¨åæã«ã§ããã®ã§ãããèªåå®è£ ããããã£ã¯ã³ã³ã¹ãã©ã¯ã¿ãªã©ã§ããåæåãã§ãã¾ããã§ããããã®å¶ç´ãåãæããããç°¡æ½ãªè¨è¿°ãå¯è½ã«ãããã¨ãããã®ã§ãã ã¨ãããã使ã£ã¦ã¿ã 使ãæ¹ã¯ç°¡åã§ã以ä¸ã®ããã«èªåå®è£ ããããã£ã«å¯¾ãã¦å¤ãä»£å ¥ããããã«è¨è¿°ããã ãã§ãã class Book { public string Title{ get; set; } = "Untitled"; public int Price{ get; set; } = 100; } ããã¯ä»¥ä¸ã®æ¸ãæ¹ã¨ç価ã§ããå®åçãªåæåããã ãã®ã³ã³ã¹ãã©ã¯ã¿ãã»ã¼ã»ã¼ä¸è¦ã«
{{#tags}}- {{label}}
{{/tags}}