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.

Access properties file programmatically with Spring?

We use the code below to inject Spring beans with properties from a properties file. <bean class="org.springframework.…

spring properties
Property getters and setters

With this simple class I am getting the compiler warning Attempting to modify/access x within its own setter/getter …

swift properties compiler-warnings getter-setter
How to add property to a class dynamically?

The goal is to create a mock class which behaves like a db resultset. So for example, if a database …

python properties runtime monkeypatching
Remove array element based on object property

I have an array of objects like so: var myArray = [ {field: 'id', operator: 'eq', value: id}, {field: 'cStatus', operator: 'eq', …

javascript jquery arrays object properties
Shortcut to create properties in Visual Studio?

I have seen some people creating properties in C# really fast, but how did they do it? What shortcuts are …

c# visual-studio properties code-snippets shortcut
Java system properties and environment variables

What's the difference between system properties System.getProperties() and environment variables System.getenv() in a JVM?

java variables properties system environment
How do I access properties of a javascript object if I don't know the names?

Say you have a javascript object like this: var data = { foo: 'bar', baz: 'quux' }; You can access the properties by …

javascript object properties iteration introspection
Get name of property as a string

(See below solution I created using the answer I accepted) I'm trying to improve the maintainability of some code involving …

c# reflection properties
Does C# have extension properties?

Does C# have extension properties? For example, can I add an extension property to DateTimeFormatInfo called ShortDateLongTimeFormat which would return …

c# properties extension-methods
Is there a “not in” operator in JavaScript for checking object properties?

Is there any sort of "not in" operator in JavaScript to check if a property does not exist in an …

javascript object properties operators