Skip to content

Instantly share code, notes, and snippets.

View iamr8's full-sized avatar
🎯
Focusing

Arash Shabbeh iamr8

🎯
Focusing
View GitHub Profile
@iamr8
iamr8 / SemanticVersion.cs
Created March 19, 2024 13:39 — forked from yadyn/SemanticVersion.cs
Semantic Version C# class
using System;
using System.Collections.Generic;
using System.Text;
/// <summary>
/// Represents assembly, application, or other version information,
/// compliant with the Semantic Versioning specifications.
/// </summary>
/// <remarks>
/// See http://semver.org/ for specifications.
@iamr8
iamr8 / PersianDateTime.cs
Created July 3, 2022 10:40
A struct which works like DateTime.cs to have a conversion to Persian Calendar
/// <summary>
/// Represents an instance of <see cref="PersianDateTime"/>
/// </summary>
public struct PersianDateTime
{
/// <summary>
/// Gets the hour component of the date by this instance
/// </summary>
/// <returns>The hour component, expressed as a value between 0 and 23</returns>
public int Hour { get; }