Extension Method Performance

后端 未结 5 1798
臣服心动
臣服心动 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:32

    Extension methods are just compiler voodoo, so they have all the performance implications of normal methods at runtime.

提交回复
热议问题