C# 클래스 cloudscribe.Core.Models.CommonExtensions

파일 보기 프로젝트 열기: joeaudette/cloudscribe

공개 메소드들

메소드 설명
ConvertIpv4ToLong ( string ipv4Address ) : long
Forget ( this task ) : void

an extenstion method to avoid the warning when firing an async task without await from inside another async task for fire and forget scenarios where we don't need to wait for the task to complete http://stackoverflow.com/questions/22629951/suppressing-warning-cs4014-because-this-call-is-not-awaited-execution-of-the

SplitOnChar ( this s, char c ) : List
SplitOnCharAndTrim ( this s, char c ) : List
StartingSegment ( this path ) : string
StartingSegment ( this path, PathString &remaining ) : string
ToDatePickerFormat ( this t ) : string

in .NET M means month 1 -12 with no leading zero in javascript it means month name like Dec we need m for month with no leading zero, so we need to lower it also in C# yyyy means four digit year but in js yy means 4 digit year so we must replace yyyy with yy

ToDatePickerWithTimeFormat ( this t ) : string

this is needed to configure a datetime picker to match DateTime.ToString("g") http://trentrichardson.com/examples/timepicker/#tp-formatting the standard ShortTimePattern uses tt where this time picker expects TT in .NET tt means use AM or PM but in this js it means am or pm we need TT to get AM or PM

ToInvariantString ( this i ) : string
ToLong ( this ipAddress ) : long
ToStringList ( this chars ) : List

메소드 상세

ConvertIpv4ToLong() 공개 정적인 메소드

public static ConvertIpv4ToLong ( string ipv4Address ) : long
ipv4Address string
리턴 long

Forget() 공개 정적인 메소드

an extenstion method to avoid the warning when firing an async task without await from inside another async task for fire and forget scenarios where we don't need to wait for the task to complete http://stackoverflow.com/questions/22629951/suppressing-warning-cs4014-because-this-call-is-not-awaited-execution-of-the
public static Forget ( this task ) : void
task this
리턴 void

SplitOnChar() 공개 정적인 메소드

public static SplitOnChar ( this s, char c ) : List
s this
c char
리턴 List

SplitOnCharAndTrim() 공개 정적인 메소드

public static SplitOnCharAndTrim ( this s, char c ) : List
s this
c char
리턴 List

StartingSegment() 공개 정적인 메소드

public static StartingSegment ( this path ) : string
path this
리턴 string

StartingSegment() 공개 정적인 메소드

public static StartingSegment ( this path, PathString &remaining ) : string
path this
remaining PathString
리턴 string

ToDatePickerFormat() 공개 정적인 메소드

in .NET M means month 1 -12 with no leading zero in javascript it means month name like Dec we need m for month with no leading zero, so we need to lower it also in C# yyyy means four digit year but in js yy means 4 digit year so we must replace yyyy with yy
public static ToDatePickerFormat ( this t ) : string
t this
리턴 string

ToDatePickerWithTimeFormat() 공개 정적인 메소드

this is needed to configure a datetime picker to match DateTime.ToString("g") http://trentrichardson.com/examples/timepicker/#tp-formatting the standard ShortTimePattern uses tt where this time picker expects TT in .NET tt means use AM or PM but in this js it means am or pm we need TT to get AM or PM
public static ToDatePickerWithTimeFormat ( this t ) : string
t this
리턴 string

ToInvariantString() 공개 정적인 메소드

public static ToInvariantString ( this i ) : string
i this
리턴 string

ToLong() 공개 정적인 메소드

public static ToLong ( this ipAddress ) : long
ipAddress this
리턴 long

ToStringList() 공개 정적인 메소드

public static ToStringList ( this chars ) : List
chars this
리턴 List