English 中文(简体)
何时我应设立一门nes子? 这是否使外产阶级的即时消费了更多的资源? [复制]
原标题:When should I create a nested class? Does it make instantiation of the outer class consume more resources? [duplicate]
  • 时间:2010-07-29 11:11:03
  •  标签:
  • c#

有时 我发现有人用nes门课。

何时我应设立一门nes子? 这是否使外产阶级的即时消费了更多的资源?

事先感谢你。

最佳回答

我认为,我可以看到你再次提出的要求。

附录A 在Scenerio One,这一类人没有穿过门。 在Cepenerio 2中,这个班级为A.B。

所有其他事情都是一样的,A类在Ceprio 2的消费量将不超过在Senerio One的消费量。 这是因为,A类和A.B两类实际上是两个不同的班级。

课程设置只影响到班级及其成员的范围。 这不影响各班的记忆布局。

* 如果在Secrio 2 A中也有A.B的例子,那么所有事情都不相同,A类可能比Secrio 1大。 但A.B类成员领域必须与类别定义分开界定,因此这是一个明显的差异。

这是否回答了你的问题?

问题回答

https://stackoverflow.com/questions/48872/why- when-should-you-use-nested-classes-in-net-or-shouldnt-you>here。 只有在封闭式组别使用的情况下,才使用宽度组。

何时我应设立一门nes子?

www.un.org/Depts/DGACM/index_spanish.htm 它取决于。

这是否使外产阶级的即时消费了更多的资源?

www.un.org/Depts/DGACM/index_spanish.htm 它取决于。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签