automatic-properties
c# constructors vs auto-properties and object initializers
I have used auto properties a lot but I have gone more and more away from that setting up classes with readonly backing fields initialized in the constru开发者_开发百科ctor. I remove all setters and o[详细]
2023-01-14 04:36 分类:问答Resharper doesn't automatically convert to auto properties in Serializable classes - should I?
I ran across this issue today and was able to determine that, when doing code cleanup, R# will not convert properties from having backing fields to auto properties in classes that are decorated with t[详细]
2023-01-11 02:21 分类:问答Why doesn't Java have automatic properties like C#? [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-01-10 09:51 分类:问答Purpose of automatic properties in .NET
Why is this: public string Foo {get;set;} considered better than thi开发者_如何学运维s: public string Foo;[详细]
2023-01-10 01:03 分类:问答VB.net automatic properties with different access level for set [duplicate]
This question already has answers here: How do I write private set auto-properties in VB 10? 开发者_JAVA百科[详细]
2023-01-09 23:53 分类:问答C# Automatic Properties -- setting defaults
What\'s the easiest/straight-forward way of setting a default value for a C# public property? // how do I set a default for this?[详细]
2023-01-09 02:13 分类:问答MonoTouch - Fields vs Automatic Properties
Is there a noticeable performance difference when using fields instead of auto properties?What about if I\'m deserializing an array of say, 1000 JSON objects with 5 properties each?[详细]
2023-01-03 20:11 分类:问答Can't set breakpoints on an auto-property setter ? Why?
Apparently VS 2008 does not allow setting a breakpoint just on the setter of an auto-property. I.e. if I define an auto-property like this:[详细]
2022-12-27 11:07 分类:问答Visual studio text editor "members" dropdown icons for auto implemented C# properties?
Is there any way (perhaps via add-in) that anyone knows to easily list or visualize the fields (and auto-properties) of a class in Visual Studio 2008 SP1 (standalone or with ReSharper 4.5)?[详细]
2022-12-20 23:49 分类:问答Automatic transformation from getter/setter to properties
I have a big library written in C++ and someone created an interface to use it in python (2.6) in an automatic way. Now I have a lot of classes with getter and setter methods. Really: I hate them.[详细]
2022-12-20 04:02 分类:问答
加载中,请稍侯......