This very simple class allows sorting of date when the object is added to a collection, such as an Array List.
using System;
using System.Collections;
using System.Text;
namespace Adatis.Class
{
class DateUpdatedSort : IComparable
{
private string _name;
private DateTime _date;
#region Constructors
public DateUpdatedSort()
{ }
public DateUpdatedSort(string Name, DateTime DateUpdated)
{
this._name = Name;
this._date = DateUpdated;
}
#endregion
#region Interface Methods
///
/// The Method that must re refenced in order for this object to be sorted.
///
///
///
public int CompareTo(object obj)
{
if(obj is DateUpdatedSort)
{
DateUpdatedSort dus = (DateUpdatedSort)obj;
return dus.UpdatedDate.CompareTo(this.UpdatedDate);
}
else
{
throw new Exception(“Object Not Correct type)”;
}
}
#endregion
#region Public Properties
///
/// The name of Control
///
public string Name
{
get {return _name;}
set {_name = value;}
}
///
/// The Date Updated
///
public DateTime UpdatedDate
{
get { return _date; }
set { _date = value;}
}
#endregion
}
}
Introduction to Data Wrangler in Microsoft Fabric
What is Data Wrangler? A key selling point of Microsoft Fabric is the Data Science
Jul
Autogen Power BI Model in Tabular Editor
In the realm of business intelligence, Power BI has emerged as a powerful tool for
Jul
Microsoft Healthcare Accelerator for Fabric
Microsoft released the Healthcare Data Solutions in Microsoft Fabric in Q1 2024. It was introduced
Jul
Unlock the Power of Colour: Make Your Power BI Reports Pop
Colour is a powerful visual tool that can enhance the appeal and readability of your
Jul
Python vs. PySpark: Navigating Data Analytics in Databricks – Part 2
Part 2: Exploring Advanced Functionalities in Databricks Welcome back to our Databricks journey! In this
May
GPT-4 with Vision vs Custom Vision in Anomaly Detection
Businesses today are generating data at an unprecedented rate. Automated processing of data is essential
May
Exploring DALL·E Capabilities
What is DALL·E? DALL·E is text-to-image generation system developed by OpenAI using deep learning methodologies.
May
Using Copilot Studio to Develop a HR Policy Bot
The next addition to Microsoft’s generative AI and large language model tools is Microsoft Copilot
Apr