Top "Properties" questions

A property, in some object-oriented programming languages, is a special sort of class member, intermediate between a field (or data member) and a method.

What is the { get; set; } syntax in C#?

I am learning ASP.NET MVC and I can read English documents, but I don't really understand what is happening …

c# properties
Sorting object property by values

If I have a JavaScript object such as: var list = { "you": 100, "me": 75, "foo": 116, "bar": 15 }; Is there a way to sort …

javascript sorting properties object
Get property value from string using reflection

I am trying implement the Data transformation using Reflection1 example in my code. The GetSourceValue function has a switch comparing …

c# reflection properties
How to efficiently count the number of keys/properties of an object in JavaScript?

What's the fastest way to count the number of keys/properties of an object? It it possible to do this …

javascript performance properties count key
How do I enumerate the properties of a JavaScript object?

How do I enumerate the properties of a JavaScript object? I actually want to list all the defined variables and …

javascript properties
How to get the list of properties of a class?

How do I get a list of all the properties of a class?

c# .net reflection properties
How does the @property decorator work in Python?

I would like to understand how the built-in function property works. What confuses me is that property can also be …

python properties decorator python-decorators python-internals
How can I find a specific element in a List<T>?

My application uses a list like this: List<MyClass> list = new List<MyClass>(); Using the Add …

c# list properties find
What's the difference between the atomic and nonatomic attributes?

What do atomic and nonatomic mean in property declarations? @property(nonatomic, retain) UITextField *userName; @property(atomic, retain) UITextField *userName; @property(…

ios objective-c properties atomic nonatomic
What is the difference between a field and a property?

In C#, what makes a field different from a property, and when should a field be used instead of a …

c# oop properties field