Class UtilHelper

Inheritance
System.Object
UtilHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.BusinessFoundation
Assembly: Mediachase.BusinessFoundation.dll
Version: 10.8.0
Syntax
public class UtilHelper

Constructors

UtilHelper()

Declaration
public UtilHelper()

Methods

GetParentControl(Control, Type, String)

Declaration
public static Control GetParentControl(Control startPoint, Type type, string clientId)
Parameters
Type Name Description
System.Web.UI.Control startPoint
System.Type type
System.String clientId
Returns
Type Description
System.Web.UI.Control

GetResFileString(String)

Declaration
public static string GetResFileString(string resourceString)
Parameters
Type Name Description
System.String resourceString
Returns
Type Description
System.String

GetValidFunctionName(String)

Returns the valid javascript function name. In other words, remove all character that matches _validFunctionNamePattern.

Declaration
public static string GetValidFunctionName(string functionName)
Parameters
Type Name Description
System.String functionName

Input function name to validate.

Returns
Type Description
System.String

A valid javascript function name.

JsonDeserialize<T>(String)

Declaration
public static T JsonDeserialize<T>(string input)
Parameters
Type Name Description
System.String input
Returns
Type Description
T
Type Parameters
Name Description
T

JsonSerialize<T>(T, JavaScriptConverter[])

Declaration
public static string JsonSerialize<T>(T obj, params JavaScriptConverter[] converters)
Parameters
Type Name Description
T obj
System.Web.Script.Serialization.JavaScriptConverter[] converters
Returns
Type Description
System.String
Type Parameters
Name Description
T