All Questions
Tagged with object properties
1,191
questions
111
votes
20
answers
241k
views
Comparing object properties in c# [closed]
This is what I've come up with as a method on a class inherited by many of my other classes. The idea is that it allows the simple comparison between properties of Objects of the same Type.
Now, this ...
1
vote
3
answers
2k
views
Dynamic Properties for object instances?
After the previous question "What are the important rules in Object Model Design", now I want to ask this:
Is there any way to have dynamic properties for class instances?
Suppose that we have this ...
2
votes
3
answers
2k
views
How to diff Property Values of two objects using GetType GetValue?
I have the following classes:
public class Person
{
public String FirstName { set; get; }
public String LastName { set; get; }
public Role Role { set; get; }
}
public class Role
{
...
41
votes
7
answers
30k
views
JavaScript - Identify whether a property is defined and set to 'undefined', or undefined
Say I have the following code:
function One() {}
One.prototype.x = undefined;
function Two() {}
var o = new One();
var t = new Two();
o.x and t.x will both evaluate to undefined. o.hasOwnProperty('...
4
votes
4
answers
4k
views
Detecting changes in property values of a .NET object?
I have a form which is used to insert/display and update. In the edit mode (update), when I pass my BO back to the Controller, what is the best possible way to check if any of the property values were ...
7516
votes
39
answers
3.3m
views
How do I remove a property from a JavaScript object?
Given an object:
let myObject = {
"ircEvent": "PRIVMSG",
"method": "newURI",
"regex": "^http://.*"
};
How do I remove the property ...