This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Excecptions | |
{ | |
// Still a draft | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Action action = GetThing() switch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
namespace ValueOf | |
{ | |
public class ValueOf<TValue, TThis> where TThis : ValueOf<TValue, TThis>, new() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Exceptions | |
{ | |
public class Result | |
{ | |
public bool IsSuccess { get; } | |
public string Error { get; } | |
public bool IsFailure => !IsSuccess; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO off | |
cls | |
ECHO Deleting all BIN and OBJ folders... | |
ECHO. | |
FOR /d /r . %%d in (bin,obj) DO ( | |
IF EXIST "%%d" ( | |
ECHO %%d | FIND /I "\node_modules\" > Nul && ( | |
ECHO.Skipping: %%d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO off | |
cls | |
ECHO Deleting all BIN and OBJ folders... | |
ECHO. | |
FOR /d /r . %%d in (bin,obj) DO ( | |
IF EXIST "%%d" ( | |
ECHO %%d | FIND /I "\node_modules\" > Nul && ( | |
ECHO.Skipping: %%d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Windows.Controls; | |
using System.Windows.Input; | |
namespace XeRetail.FrontOffice.UI.CustomControls | |
{ | |
public class TouchScroller : ScrollViewer | |
{ | |
private double _firstMousePosition; | |
private bool _isScrolling; |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"IranCityIP": [ | |
{ | |
"FromIP": "2.144.0.0", | |
"ToIP": "2.147.255.255", | |
"Country": "IR", | |
"Provience": "Tehran", | |
"City": "Tehran" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DateTimeToPersianDateTimeConverter : ITypeConverter<DateTime, string> | |
{ | |
private readonly string _separator; | |
private readonly bool _includeHourMinute; | |
public DateTimeToPersianDateTimeConverter(string separator = "/", bool includeHourMinute = true) | |
{ | |
_separator = separator; | |
_includeHourMinute = includeHourMinute; | |
} |