ä¸è¨ã³ã¼ãã®ãã«ããéããå°ã£ã¦ãã¾ãã public class TestClass : IBase, IExpansion1, IExpantion2 { public T Get<T>() where T : IBase { return this; } } public interface IBase {} public interface IExpansion1 : IBase {} public interface IExpantion2 : IBase {} å ·ä½çã«ã¯ return this; ã®ã¨ããã§åå¤æãã§ããªãã¨æããã¾ãã ææã¨ãã¦ã¯ã ä»ã®ã¯ã©ã¹ãTestClassã®æ©è½ã使ãã®ã«å®ä½ãã®ã¾ã¾ä½¿ãã®ã§ã¯ãªãã å©ç¨ã¯ã©ã¹ãã¨ã«é©åãªinterfaceï¼IExpansion1, IExpantion2ï¼ãåå¾ãã ãããéãã¦ä½¿ã£ã¦æ¬²ããã¨èãã¦ãã¾ãã ãã®
{{#tags}}- {{label}}
{{/tags}}