Extension Method Performance

后端 未结 5 1786
臣服心动
臣服心动 2020-12-10 15:57
            /*I have defined Extension Methods for the TypeX like this*/ 
        public static Int32 GetValueAsInt(this TypeX oValue)
        {
            return I         


        
5条回答
  •  执笔经年
    2020-12-10 16:38

    You won't suffer any performance since the extension methods are all bound at compile time (how do you say that?).

提交回复
热议问题