有几种方法可以在C#类有

编程入门 行业动态 更新时间:2024-10-11 03:15:09
本文介绍了有几种方法可以在C#类有的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否有多个属性,方法C#类可以有限制吗?

Is there a limitation on number of properties, methods a C# class can have?

我做一个快速脱脂在标准ECMA-334,并没有发现它的任何信息。

I do a quick skim at Standard ECMA-334 and did not find any information on it.

在跳进为什么一个类有许多方法都是不好的设计,我想成为的意图更加清晰。当然,我也不会写一个类有大量的方法手动。我问这个的原因是我需要生成由code大量执行单元。我辩论之间有多个班级,一个方法或者一个大类有多种方法。

Before jumping into why a class with many methods are bad design, I want to be more clear on the intention. Of course I will not be writing a class with large number of methods manually. The reason I am asking this is I need to generate a large number of execution units by code. I am debate between have multiple classes with single method or one large class with multiple methods.

因此​​,对于这个问题,我唯一的兴趣,如果是有限制的,哪些是限制的属性数量,方法。

So for this question, I am only interest if is there a limit and what is the limit for number of properties, methods.

推荐答案

1670万每方法(而不是类)的装配。

16.7 million per assembly per method (not class).

更多推荐

有几种方法可以在C#类有

本文发布于:2023-11-29 07:02:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1645680.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:几种方法

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!