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.

Uncaught Typeerror: cannot read property 'innerHTML' of null

Can anyone explain what is theses errors? Uncaught TypeError: cannot read property 'innerHTML' of null View on my website This …

javascript properties innerhtml typeerror
How to loop through all the properties of a class?

I have a class. Public Class Foo Private _Name As String Public Property Name() As String Get Return _Name End …

.net vb.net class reflection properties
How to check whether an object has certain method/property?

Using dynamic pattern perhaps? You can call any method/property using the dynamic keyword, right? How to check whether the …

c# .net methods reflection properties
How to make a class property?

In python I can add a method to a class with the @classmethod decorator. Is there a similar decorator to …

python properties class-method
C# Iterate through Class properties

I'm currently setting all of the values of my class object Record. This is the code that I'm using to …

c# properties loops
C# : assign data to properties via constructor vs. instantiating

Supposing I have an Album class : public class Album { public string Name {get; set;} public string Artist {get; set;} public …

c# oop constructor properties
Moq, SetupGet, Mocking a property

I'm trying to mock a class, called UserInputEntity, which contains a property called ColumnNames: (it does contain other properties, I've …

c# c#-4.0 properties moq
Is there a way to specify a default property value in Spring XML?

We are using a PropertyPlaceholderConfigurer to use java properties in our Spring configuration (details here) eg: <foo name="port"&…

java xml spring properties
Passing properties by reference in C#

I'm trying to do do the following: GetString( inputString, ref Client.WorkPhone) private void GetString(string inValue, ref string outValue) { …

c# properties pass-by-reference
How do I use Linq to obtain a unique list of properties from a list of objects?

I'm trying to use Linq to return a list of ids given a list of objects where the id is …

linq class list c#-3.0 properties