Open.Core.PropertyWriter.JQueryObject C# (CSharp) Method

JQueryObject() private static method

private static JQueryObject ( object value ) : string
value object
return string
        private static string JQueryObject(object value)
        {
            if (value is string) return null;
            try
            {
                jQueryObject obj = (jQueryObject)value;
                if (Script.IsNullOrUndefined(obj.Length)) return null;
                return string.Format("[jQueryObject.Length:{0}]", obj.Length);
            }
            catch (Exception)
            {
                // Ignore.
                return null;
            }
        }
        #endregion