Skip to main content

All Questions

Tagged with
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 ...
nailitdown's user avatar
  • 7,928
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 ...
AliPST's user avatar
  • 167
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 { ...
Jeff's user avatar
  • 13.2k
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('...
Claudiu's user avatar
  • 227k
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 ...
Saif Khan's user avatar
  • 18.7k
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 ...
johnstok's user avatar
  • 97.7k

15 30 50 per page
1
76 77 78 79
80