C# Class Microsoft.HockeyApp.Tools.UtilExtensions

Mostrar archivo Open project: bitstadium/HockeySDK-Windows

Public Methods

Method Description
ConvertStringToColor ( this hexColorString, System.Color defaultColor ) : System.Color

Converts a hex color string to a System.Windows.Media.Color

GetValue ( this settings, string key ) : object
IsEmpty ( this str ) : bool
IsValidEmail ( this str ) : bool
RegexForLikeMatching ( this @this, string globPattern ) : Regex
RemoveValue ( this settings, string key ) : bool
SetValue ( this settings, string key, object value ) : bool

Private Methods

Method Description
EncodeWriteableBitmapAsync ( this bmp, IRandomAccessStream writeStream, System.Guid encoderId ) : System.Threading.Tasks.Task
GetLocalFolderByNameCreateIfNotExistingAsync ( this @this ) : Task
GetValue ( this self, String key ) : string
RemoveValue ( this self, String key ) : void
SetValue ( this self, String key, String value ) : void

Method Details

ConvertStringToColor() public static method

Converts a hex color string to a System.Windows.Media.Color
public static ConvertStringToColor ( this hexColorString, System.Color defaultColor ) : System.Color
hexColorString this a hex color string like #FFFFFF00
defaultColor System.Color defautl value to if something goes wrong
return System.Color

GetValue() public static method

public static GetValue ( this settings, string key ) : object
settings this
key string
return object

IsEmpty() public static method

public static IsEmpty ( this str ) : bool
str this
return bool

IsValidEmail() public static method

public static IsValidEmail ( this str ) : bool
str this
return bool

RegexForLikeMatching() public static method

public static RegexForLikeMatching ( this @this, string globPattern ) : Regex
@this this
globPattern string
return System.Text.RegularExpressions.Regex

RemoveValue() public static method

public static RemoveValue ( this settings, string key ) : bool
settings this
key string
return bool

SetValue() public static method

public static SetValue ( this settings, string key, object value ) : bool
settings this
key string
value object
return bool