Top "Automatic-properties" questions

xCode 6 how to fix "Use of undeclared identifier" for automatic property synthesis?

I'm using xCode6 Beta 3, and am running into an issue where a code which previously compiled fine (xCode 5.1.1 or xCode6 …

ios compiler-errors xcode6 automatic-properties
Validating properties in c#

let's suggest I got an interface and inherit class from it, internal interface IPersonInfo { String FirstName { get; set; } String LastName { …

c# validation inheritance interface automatic-properties
How to set default value for Auto-Implemented Properties in ASP.NET

I came to know that C# 3.0 comes with a new feature of Auto-Implemented Properties,I liked it as we don't …

c# asp.net default-value automatic-properties
how to override set in C# of automatic properties

I want to use auto-implemented properties, but at the same time I want to call a method every time the …

c# c#-3.0 properties automatic-properties
Quick create C# properties from variables

For C#, I hate writing out the variables and then writing out all the properties. Isn't there a way to …

c# automatic-properties
How to prevent auto implemented properties from being serialized?

How can I prevent a auto implemented property from being serialized by the binary formatter? The [NonSerialized] attribute can only …

c# serialization automatic-properties
C# Automatic Properties

I'm a bit confused on the point of Automatic properties in C# e.g public string Forename{ get; set; } I …

c# c#-3.0 automatic-properties
How to set value of property where there is no setter

I have seen various questions raised and answered where we can invoke a private setter using reflection such as this …

c# reflection properties automatic-properties
Expression-bodied properties vs. {get; set;}

When I have Visual Studio 2017 generate properties for me, it will always use the new expression-bodied properties, for example: private …

c# properties automatic-properties
How can I put validation in the getter and setter methods in C#?

In C#, I can have a property without having the need to declare a private variable. My VB6 code that …

c# .net vb6 syntax automatic-properties