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
}
}
Pareto Charts in Power BI and the DAX behind them
The Pareto principle, commonly referred to as the 80/20 rule, is a concept of prioritisation.
Apr
Databricks: Cluster Configuration
Databricks, a cloud-based platform for data engineering, offers several tools that can be used to
Apr
AI Assistance in Microsoft Fabric
The exponential growth of Large Language Models (LLMs) couples with Microsoft’s close partnership with OpenAI
Apr
10 reasons why it’s worth the effort to understand the value of your data
“If leaders really want to create a data driven culture, the journey starts with them!
Apr
Content Safety in Azure AI Studio
Azure AI Content Safety is a solution designed to identify harmful content, whether generated by
Apr
Model Benchmarks in Azure AI Studio
In the constantly changing field of artificial intelligence (AI) and machine learning (ML), choosing the
Apr
Celebrating International Women’s Day: from Classroom to Code
As we celebrate International Women’s Day, I want to share my journey of breaking stereotypes
Mar
Pretty Power BI – Adding Pagination to Bar Charts
Good User Experience (UX) design is crucial in enabling stakeholders to maximise the insights that
Feb