Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7672791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:22:02+00:00 2026-05-31T16:22:02+00:00

I need to represent that a property on an object is different from that

  • 0

I need to represent that a property on an object is different from that of another datasourace. I have two data sources, and when I pull from one of the datasources, I need a way to determine if any of the properties of the object from that datasource are different from the other datasource.

DSA
Object1.Value = 3

DSB
Object1.Value = 4

Obviously, determining that they are different is easy. What i want, however, is the ability to say that DSB.Object1.Value is “different” without needing to also pass the object from DSA to a view.

My initial approach is to have a PropertyWrapper class

public class PropertyWrapper<T>
{
    T value;
    bool different;
}

Is there a better way to represent this through attributes or extensions?

EDIT: Changed from a “Changed” to a “Different” representation. I don’t need real time “changes”, instead I need a representation that the property is not the same as the same property of the same object from another data source.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:22:03+00:00Added an answer on May 31, 2026 at 4:22 pm

    Considering that you pull it from datasource, the first solution that comes to me is using some inside boolean field, say IsChanged.

    In other words:

    The “operator” who operates over that objects should take care of changing a state/field inside it, in order to notify to outside world that something was changed in that object.

    There is no easy solution for this, but you can define some generic interface, like INotifyPropertyChanged, or invent your own, whom method SignalChanged is called on every property set function.

    Just an idea, there are could be plenty other solutions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some data in a database that I need represented in an XML
I have my own classes that represent image data. They have various underlying structure
I need to build a class that will represent a row in some table
I need to represent the time in (%m/%d/%Y %H:%M:%S) format from the float value
I need to represent huge data(37 columns,1000+ rows) in web. I would like to
I have the following Json collection and I need to represent it as a
I have a system that entities (from database, represented as Java objects through ORM)
I am creating an object server-side which is to have all of the data
The DataContext.GetTable() method will return an object of type: System.Data.Linq.Table By doing that, I
I have the following problem: i have some data loaded in my application, that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.