SharpKit.JavaScript An object representing the arguments to the currently executing function, and the functions that called it. The zero-based index to argument values passed to the Function object. Returns the actual number of arguments passed to a function by the caller. Returns the Function object being executed, that is, the body text of the specified Function object. The Array object provides support for creation of arrays of any data type. Appends new elements to an array, and returns the new length of the array. Optional. New elements of the Array. Removes the last element from an array and returns it. If the array is empty, undefined is returned. Returns a new array consisting of a combination of the current array and any additional items. Optional. Additional items to add to the end of the current array. Returns a new array consisting of a combination of the current array and any additional items. Optional. Additional items to add to the end of the current array. Returns a JsString value consisting of all the elements of an array concatenated together and separated by the specified separator character. Required. A JsString that is used to separate one element of an array from the next in the resulting String object. If omitted, the array elements are separated with a comma. Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. Returns the elements removed from the array. Required. The zero-based location in the array from which to start removing elements. Required. The number of elements to remove. Optional. Elements to insert into the array in place of the deleted elements. The splice method modifies the array by removing the specified number of elements from position start and inserting new elements. The deleted elements are returned as a new array object. Returns a section of an array. Required. The index to the beginning of the specified portion of the array. Optional. The index to the end of the specified portion of the array. The slice method returns an Array object containing the specified portion of the array. The slice method copies up to, but not including, the element indicated by end. If start is negative, it is treated as length + start where length is the length of the array. If end is negative, it is treated as length + end where length is the length of the array. If end is omitted, extraction continues to the end of the array. If end occurs before start, no elements are copied to the new array. Returns a section of an array. Required. The index to the beginning of the specified portion of the array. The slice method returns an Array object containing the specified portion of the array. The slice method copies up to, but not including, the element indicated by end. If start is negative, it is treated as length + start where length is the length of the array. If end is negative, it is treated as length + end where length is the length of the array. If end is omitted, extraction continues to the end of the array. If end occurs before start, no elements are copied to the new array. Tests whether some element in the array passes the test implemented by the provided function. Supported in Chrome, Firefox, IE 9, Opera and Safari Documentation from MDN. Executes a provided function once per array element. Supported in Chrome, Firefox, IE 9, Opera and Safari Documentation from MDN. Returns an Array object with the elements reversed. Removes the first element from an array and returns that element. Inserts specified elements into the beginning of an array. Inserts specified elements into the beginning of an array. Optional. Elements to insert at the start of the Array. Returns an Array object with the elements sorted. Warning: array itself is sorted internally Optional. OriginalValue of the function used to determine the order of the elements. Returns an Array object with the elements sorted. Warning: array itself is sorted internally Optional. OriginalValue of the function used to determine the order of the elements. Returns an Array object with the elements sorted. The lastIndexOf() method searches the array for the specified item, and returns it's position. The search will start at the specified position, or at the end if no start position is specified, and end the search at the beginning of the array. Returns -1 if the item is not found. -1 if the item is not found. The lastIndexOf() method searches the array for the specified item, and returns it's position. The search will start at the specified position, or at the end if no start position is specified, and end the search at the beginning of the array. Returns -1 if the item is not found. -1 if the item is not found. The indexOf() method searches the array for the specified item, and returns it's position. The search will start at the specified position, or at the beginning if no start position is specified, and end the search at the end of the array. If the item is present more than once, the indexOf method returns the position of the first occurence. -1 if the item is not found. The indexOf() method searches the array for the specified item, and returns it's position. The search will start at the specified position, or at the beginning if no start position is specified, and end the search at the end of the array. If the item is present more than once, the indexOf method returns the position of the first occurence. -1 if the item is not found. Returns an integer value one higher than the highest element defined in an array. The Array object provides support for creation of arrays of any data type. Appends new elements to an array, and returns the new length of the array. Optional. New elements of the Array. Appends new elements to an array, and returns the new length of the array. Optional. New elements of the Array. Removes the last element from an array and returns it. If the array is empty, undefined is returned. Returns a new array consisting of a combination of the current array and any additional items. Optional. Additional items to add to the end of the current array. Returns a new array consisting of a combination of the current array and any additional items. Optional. Additional items to add to the end of the current array. Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. Returns the elements removed from the array. Required. The zero-based location in the array from which to start removing elements. Required. The number of elements to remove. Optional. Elements to insert into the array in place of the deleted elements. The splice method modifies the array by removing the specified number of elements from position start and inserting new elements. The deleted elements are returned as a new array object. Returns a section of an array. Required. The index to the beginning of the specified portion of the array. Optional. The index to the end of the specified portion of the array. The slice method returns an Array object containing the specified portion of the array. The slice method copies up to, but not including, the element indicated by end. If start is negative, it is treated as length + start where length is the length of the array. If end is negative, it is treated as length + end where length is the length of the array. If end is omitted, extraction continues to the end of the array. If end occurs before start, no elements are copied to the new array. Returns a section of an array. Required. The index to the beginning of the specified portion of the array. The slice method returns an Array object containing the specified portion of the array. The slice method copies up to, but not including, the element indicated by end. If start is negative, it is treated as length + start where length is the length of the array. If end is negative, it is treated as length + end where length is the length of the array. If end is omitted, extraction continues to the end of the array. If end occurs before start, no elements are copied to the new array. Tests whether some element in the array passes the test implemented by the provided function. Supported in Chrome, Firefox, IE 9, Opera and Safari Documentation from MDN. Executes a provided function once per array element. Supported in Chrome, Firefox, IE 9, Opera and Safari Documentation from MDN. Executes a provided function once per array element. Supported in Chrome, Firefox, IE 9, Opera and Safari Documentation from MDN. Executes a provided function once per array element. Supported in Chrome, Firefox, IE 9, Opera and Safari Documentation from MDN. Returns an Array object with the elements reversed. Removes the first element from an array and returns that element. Inserts specified elements into the beginning of an array. Inserts specified elements into the beginning of an array. Optional. Elements to insert at the start of the Array. the new length Returns an Array object with the elements sorted. Warning: Array itself is sorted internally Optional. OriginalValue of the function used to determine the order of the elements. Returns an Array object with the elements sorted. Warning: Array itself is sorted internally Returns a JsString value consisting of all the elements of an array concatenated together and separated by the specified separator character. Required. A JsString that is used to separate one element of an array from the next in the resulting String object. If omitted, the array elements are separated with a comma. The lastIndexOf() method searches the array for the specified item, and returns it's position. The search will start at the specified position, or at the end if no start position is specified, and end the search at the beginning of the array. Returns -1 if the item is not found. -1 if the item is not found. The lastIndexOf() method searches the array for the specified item, and returns it's position. The search will start at the specified position, or at the end if no start position is specified, and end the search at the beginning of the array. Returns -1 if the item is not found. -1 if the item is not found. The indexOf() method searches the array for the specified item, and returns it's position. The search will start at the specified position, or at the beginning if no start position is specified, and end the search at the end of the array. If the item is present more than once, the indexOf method returns the position of the first occurence. -1 if the item is not found. The indexOf() method searches the array for the specified item, and returns it's position. The search will start at the specified position, or at the beginning if no start position is specified, and end the search at the end of the array. If the item is present more than once, the indexOf method returns the position of the first occurence. -1 if the item is not found. Returns an integer value one higher than the highest element defined in an array. Watches for a property to be assigned a value and runs a function when that occurs. Watches for assignment to a property named prop in this object, calling handler(prop, oldval, newval) whenever prop is set and storing the return value in that property. A watchpoint can filter (or nullify) the value assignment, by returning a modified newval (or by returning oldval). If you delete a property for which a watchpoint has been set, that watchpoint does not disappear. If you later recreate the property, the watchpoint is still in effect. To remove a watchpoint, use the unwatch method. By default, the watch method is inherited by every object descended from Object. The JavaScript debugger has functionality similar to that provided by this method, as well as other debugging options. For information on the debugger, see Venkman. In NES 3.0 and 4.x, handler is called from native code as well as assignments in script. In Firefox, handler is only called from assignments in script, not from native code. For example, window.watch('location', myHandler) will not call myHandler if the user clicks a link to an anchor within the current document. However, window.location += '#myAnchor' will call myHandler: The name of a property of the object. A function to call. Removes a watchpoint set with the watch method The JavaScript debugger has functionality similar to that provided by this method, as well as other debugging options. For information on the debugger, see Venkman. By default, this method is inherited by every object descended from Object. The name of a property of the object. Returns the primitive value of the specified object. The required object reference is any intrinsic JScript object. The valueOf method is defined differently for each intrinsic JScript object. Object Return Value Array Returns the array instance. Boolean The Boolean value. Date The stored time value in milliseconds since midnight, January 1, 1970 UTC. Function The function itself. Number The numeric value. Object The object itself. This is the default. String The JsString value. The Math and Error objects do not have a valueOf method. Returns a Boolean value indicating whether an object exists in another object's prototype chain. Another object whose prototype chain is to be checked. true if object2 has object1 in its prototype chain. The prototype chain is used to share functionality between instances of the same object type. The isPrototypeOf method returns false when object2 is not an object or when object1 does not appear in the prototype chain of the object2. Returns a Boolean value indicating whether an object has a property with the specified name. String value of a property name. true if object has a property of the specified name, false if it does not. This method does not check if the property exists in the object's prototype chain; the property must be a member of the object itself. Returns a JsString representation of an object. Returns "[object objectname]", where objectname is the name of the object type. The typeof operator returns a string indicating the type of the unevaluated operand. A C# equivalant to the javascript typeof operator, with one difference, this one returns an enum with all possible values, instead of an untyped string Returns a reference to the ctor function of a prototype mode type Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Evaluates JScript code and executes it. A JsString value that contains valid JScript code. This JsString is parsed by the JScript parser and executed. Returns an integer converted from a JsString. A JsString to convert into a number. An integer value equal to the number contained in numString. If no prefix of numString can be successfully parsed into an integer, NaN (not a number) is returned. Returns an integer converted from a JsString. A JsString to convert into a number. A value between 2 and 36 indicating the base of the number contained in numString. If not supplied, strings with a prefix of '0x' are considered hexadecimal and strings with a prefix of '0' are considered octal. All other strings are considered decimal. An integer value equal to the number contained in numString. If no prefix of numString can be successfully parsed into an integer, NaN (not a number) is returned. Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number). A value to be tested against NaN. True if the value converted to the Number type is the NaN, otherwise false. Returns a Boolean value that indicates if a supplied number is finite. A numeric value. True if number is any value other than NaN, negative infinity, or positive infinity. In those three cases, it returns false. Deletes a property from an object, or removes an element from an array. The expression argument is a valid JavaScript expression that usually results in a property name or array element. If the result of expression is an object, the property specified in expression exists, and the object will not allow it to be deleted, false is returned. In all other cases, true is returned. Returns a floating-point number converted from a JsString. A JsString that contains a floating-point number. A numerical value equal to the number contained in numString. If no prefix of numString can be successfully parsed into a floating-point number, NaN (not a number) is returned. Returns an string converted from a value. A value to convert into a string. An string value Allows writing direct JavaScript code - calling this method will generate only the code inside the string parameter indicates that a variable has not been assigned a value. The typeof operator returns a string indicating the type of the unevaluated operand. A C# equivalant to the javascript typeof operator, with one difference, this one returns an enum with all possible values, instead of an untyped string Returns a reference to the ctor function of a prototype mode type Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function with instance context if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Returns a reference to a javascript function without instance context even if applicable Evaluates JScript code and executes it. A JsString value that contains valid JScript code. This JsString is parsed by the JScript parser and executed. Returns an integer converted from a JsString. A JsString to convert into a number. An integer value equal to the number contained in numString. If no prefix of numString can be successfully parsed into an integer, NaN (not a number) is returned. Returns an integer converted from a JsString. A JsString to convert into a number. A value between 2 and 36 indicating the base of the number contained in numString. If not supplied, strings with a prefix of '0x' are considered hexadecimal and strings with a prefix of '0' are considered octal. All other strings are considered decimal. An integer value equal to the number contained in numString. If no prefix of numString can be successfully parsed into an integer, NaN (not a number) is returned. Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number). A value to be tested against NaN. True if the value converted to the Number type is the NaN, otherwise false. Returns a Boolean value that indicates if a supplied number is finite. A numeric value. True if number is any value other than NaN, negative infinity, or positive infinity. In those three cases, it returns false. Deletes a property from an object, or removes an element from an array. The expression argument is a valid JavaScript expression that usually results in a property name or array element. If the result of expression is an object, the property specified in expression exists, and the object will not allow it to be deleted, false is returned. In all other cases, true is returned. Returns a floating-point number converted from a JsString. A JsString that contains a floating-point number. A numerical value equal to the number contained in numString. If no prefix of numString can be successfully parsed into a floating-point number, NaN (not a number) is returned. Returns an string converted from a value. A value to convert into a string. An string value Allows writing direct JavaScript code - calling this method will generate only the code inside the string parameter indicates that a variable has not been assigned a value. Returns the year value in the Date object using local time. the year as an absolute number. For example, the year 1976 is returned as 1976. Returns the month value in the Date object using local time. integer between 0 and 11 indicating the month value in the Date object. The integer returned is not the traditional number used to indicate the month. It is one less. If "Jan 5, 1996 08:47:00" is stored in a Date object, getMonth returns 0. Returns the day-of-the-month value in a Date object using local time. an integer between 1 and 31 that represents the day-of-the-month value in the Date object. Returns the hours value in a Date object using local time. an integer between 0 and 23, indicating the number of hours since midnight. A zero occurs in two situations: the time is before 1:00:00 am, or the time was not stored in the Date object when the object was created. The only way to determine which situation you have is to also check the minutes and seconds for zero values. If they are all zeroes, it is nearly certain that the time was not stored in the Date object. Returns the minutes value in a Date object using local time. integer between 0 and 59 equal to the minutes value stored in the Date object. A zero is returned in two situations: when the time is less than one minute after the hour, or when the time was not stored in the Date object when the object was created. The only way to determine which situation you have is to also check the hours and seconds for zero values. If they are all zeroes, it is nearly certain that the time was not stored in the Date object. Returns the seconds value in a Date object using local time. integer between 0 and 59 indicating the seconds value of the indicated Date object. A zero is returned in two situations. One occurs when the time is less than one second into the current minute. The other occurs when the time was not stored in the Date object when the object was created. The only way to determine which situation you have is to also check the hours and minutes for zero values. If they are all zeroes, it is nearly certain that the time was not stored in the Date object. Returns the milliseconds value in a Date object using local time. The millisecond value returned can range from 0-999. Sets the month value in the Date object using local time. A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Sets the month value in the Date object using local time. A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used. Sets the hour value in the Date object using local time. A numeric value equal to the hours value. Sets the hour value in the Date object using local time. A numeric value equal to the hours value. A numeric value equal to the minutes value. Sets the hour value in the Date object using local time. A numeric value equal to the hours value. A numeric value equal to the minutes value. A numeric value equal to the seconds value. Sets the hour value in the Date object using local time. A numeric value equal to the hours value. A numeric value equal to the minutes value. A numeric value equal to the seconds value. A numeric value equal to the milliseconds value. Sets the minutes value in the Date object using local time. A numeric value equal to the minutes value. Must be supplied if either of the following arguments is used. Sets the minutes value in the Date object using local time. A numeric value equal to the minutes value. Must be supplied if either of the following arguments is used. A numeric value equal to the seconds value. Must be supplied if the numMilli argument is used. Sets the minutes value in the Date object using local time. A numeric value equal to the minutes value. Must be supplied if either of the following arguments is used. A numeric value equal to the seconds value. Must be supplied if the numMilli argument is used. A numeric value equal to the milliseconds value. Sets the seconds value in the Date object using local time. A numeric value equal to the seconds value. Sets the seconds value in the Date object using local time. A numeric value equal to the seconds value. A numeric value equal to the milliseconds value. Sets the milliseconds value in the Date object using local time. A numeric value equal to the millisecond value. Sets the date and time value in the Date object. A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT. Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC). A numeric value equal to the day of the month. Sets the year value in the Date object using Universal Coordinated Time (UTC). A numeric value equal to the year. Sets the year value in the Date object using Universal Coordinated Time (UTC). A numeric value equal to the year. A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied. Sets the year value in the Date object using Universal Coordinated Time (UTC). A numeric value equal to the year. A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied. A numeric value equal to the day of the month. Sets the hours value in the Date object using Universal Coordinated Time (UTC). A numeric value equal to the hours value. Sets the hours value in the Date object using Universal Coordinated Time (UTC). A numeric value equal to the hours value. A numeric value equal to the minutes value. Sets the hours value in the Date object using Universal Coordinated Time (UTC). A numeric value equal to the hours value. A numeric value equal to the minutes value. A numeric value equal to the seconds value Sets the hours value in the Date object using Universal Coordinated Time (UTC). A numeric value equal to the hours value. A numeric value equal to the minutes value. A numeric value equal to the seconds value A numeric value equal to the milliseconds value. Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC). A numeric value equal to the millisecond value. Sets the minutes value in the Date object using Universal Coordinated Time (UTC). A numeric value equal to the minutes value. Sets the minutes value in the Date object using Universal Coordinated Time (UTC). A numeric value equal to the minutes value. A numeric value equal to the seconds value. Sets the minutes value in the Date object using Universal Coordinated Time (UTC). A numeric value equal to the minutes value. A numeric value equal to the seconds value. A numeric value equal to the milliseconds value. Sets the month value in the Date object using Universal Coordinated Time (UTC). A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Sets the month value in the Date object using Universal Coordinated Time (UTC). A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used. Sets the seconds value in the Date object using Universal Coordinated Time (UTC). A numeric value equal to the seconds value. Sets the seconds value in the Date object using Universal Coordinated Time (UTC). A numeric value equal to the seconds value. A numeric value equal to the milliseconds value. Sets the year value in the Date object. This method is obsolete, and is maintained for backwards compatibility only. Use the setFullYear method instead. For the years 1900 through 1999, this is a numeric value equal to the year minus 1900. For dates outside that range, this is a 4-digit numeric value. Returns a date as a JsString value. A JsString value containing the date, in the current time zone, in a convenient, easily read format. Returns a date converted to a JsString using Greenwich Mean Time(GMT). Obsolete, and is provided for backwards compatibility only. It is recommended that you use the toUTCString method instead. A String object that contains the date formatted using GMT convention. The format of the return value is as follows: "05 Jan 1996 00:00:00 GMT." Used by the JSON.stringify method to enable the transformation of an object's data of before the JSON serialization. Returns an ISO-formatted date JsString for the UTC time zone (denoted by the suffix Z). Returns a date as a JsString value appropriate to the host environment's current locale. A JsString value that contains a date, in the current time zone, in an easily read format. The date is in the default format of the host environment's current locale. The return value of this method cannot be relied upon in scripting, as it will vary from computer to computer. The toLocaleDateString method should only be used to format display – never as part of a computation. Returns a time as a JsString value appropriate to the host environment's current locale. A JsString value that contains a time, in the current time zone, in an easily read format. The time is in the default format of the host environment's current locale. The return value of this method cannot be relied upon in scripting, as it will vary from computer to computer. The toLocaleTimeString method should only be used to format display – never as part of a computation. Returns a time as a JsString value. A JsString value containing the time, in the current time zone, in a convenient, easily read format. Returns a date converted to a JsString using Universal Coordinated Time (UTC). A String object that contains the date formatted using UTC convention in a convenient, easily read form. Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the supplied date. The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. The month as an integer between 0 and 11 (January to December). The date as an integer between 1 and 31. The number of milliseconds between midnight, January 1, 1970 UTC and the supplied date. This return value can be used in the setTime method and in the Date object constructor. If the value of an argument is greater than its range, or is a negative number, other stored values are modified accordingly. For example, if you specify 150 seconds, JScript redefines that number as two minutes and 30 seconds. Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the supplied date. The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. The month as an integer between 0 and 11 (January to December). The date as an integer between 1 and 31. An integer from 0 to 23 (midnight to 11pm) that specifies the hour. The number of milliseconds between midnight, January 1, 1970 UTC and the supplied date. This return value can be used in the setTime method and in the Date object constructor. If the value of an argument is greater than its range, or is a negative number, other stored values are modified accordingly. For example, if you specify 150 seconds, JScript redefines that number as two minutes and 30 seconds. Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the supplied date. The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. The month as an integer between 0 and 11 (January to December). The date as an integer between 1 and 31. An integer from 0 to 23 (midnight to 11pm) that specifies the hour. An integer from 0 to 59 that specifies the minutes. The number of milliseconds between midnight, January 1, 1970 UTC and the supplied date. This return value can be used in the setTime method and in the Date object constructor. If the value of an argument is greater than its range, or is a negative number, other stored values are modified accordingly. For example, if you specify 150 seconds, JScript redefines that number as two minutes and 30 seconds. Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the supplied date. The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. The month as an integer between 0 and 11 (January to December). The date as an integer between 1 and 31. An integer from 0 to 23 (midnight to 11pm) that specifies the hour. An integer from 0 to 59 that specifies the minutes. An integer from 0 to 59 that specifies the seconds. The number of milliseconds between midnight, January 1, 1970 UTC and the supplied date. This return value can be used in the setTime method and in the Date object constructor. If the value of an argument is greater than its range, or is a negative number, other stored values are modified accordingly. For example, if you specify 150 seconds, JScript redefines that number as two minutes and 30 seconds. Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the supplied date. The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. The month as an integer between 0 and 11 (January to December). The date as an integer between 1 and 31. An integer from 0 to 23 (midnight to 11pm) that specifies the hour. An integer from 0 to 59 that specifies the minutes. An integer from 0 to 59 that specifies the seconds. An integer from 0 to 999 that specifies the milliseconds. The number of milliseconds between midnight, January 1, 1970 UTC and the supplied date. This return value can be used in the setTime method and in the Date object constructor. If the value of an argument is greater than its range, or is a negative number, other stored values are modified accordingly. For example, if you specify 150 seconds, JScript redefines that number as two minutes and 30 seconds. Returns the primitive value of the specified object. The stored time value in milliseconds since midnight, January 1, 1970 UTC. Returns the time value in a Date object. An integer value representing the number of milliseconds between midnight, January 1, 1970 and the time value in the Date object. The range of dates is approximately 285,616 years from either side of midnight, January 1, 1970. Negative numbers indicate dates prior to 1970. Returns the day of the week value in a Date object using local time. an integer between 0 and 6 representing the day of the week and corresponds to a day of the week as follows: 0 Sunday 1 Monday 2 Tuesday 3 Wednesday 4 Thursday 5 Friday 6 Saturday Returns the difference in minutes between the time on the host computer and Universal Coordinated Time (UTC). An integer value representing the number of minutes between the time on the current machine and UTC. These values are appropriate to the computer the script is executed on. If it is called from a server script, the return value is appropriate to the server. If it is called from a client script, the return value is appropriate to the client. Returns the day-of-the-month value in a Date object using Universal Coordinated Time (UTC). an integer between 1 and 31 that represents the day-of-the-month value in the Date object. Returns the day of the week value in a Date object using Universal Coordinated Time (UTC). an integer between 0 and 6 representing the day of the week and corresponds to a day of the week as follows: 0 Sunday 1 Monday 2 Tuesday 3 Wednesday 4 Thursday 5 Friday 6 Saturday Returns the year value in a Date object using Universal Coordinated Time (UTC). The year as an absolute number. This avoids the year 2000 problem where dates beginning with January 1, 2000 are confused with those beginning with January 1, 1900. Returns the hours value in a Date object using Universal Coordinated Time (UTC). An integer between 0 and 23 indicating the number of hours since midnight. A zero occurs in two situations: the time is before 1:00:00 A.M., or a time was not stored in the Date object when the object was created. The only way to determine which situation you have is to also check the minutes and seconds for zero values. If they are all zeroes, it is nearly certain that the time was not stored in the Date object. Returns the milliseconds value in a Date object using Universal Coordinated Time (UTC). The millisecond value returned can range from 0-999. Returns the minutes value in a Date object using Universal Coordinated Time (UTC). An integer between 0 and 59 equal to the number of minutes value in the Date object. A zero occurs in two situations: the time is less than one minute after the hour, or a time was not stored in the Date object when the object was created. The only way to determine which situation you have is to also check the hours and seconds for zero values. If they are all zeroes, it is nearly certain that the time was not stored in the Date object. Returns the month value in a Date object using Universal Coordinated Time (UTC). An integer between 0 and 11 indicating the month value in the Date object. The integer returned is not the traditional number used to indicate the month. It is one less. If "Jan 5, 1996 08:47:00.0" is stored in a Date object, getUTCMonth returns 0. Returns the seconds value in a Date object using Universal Coordinated Time (UTC). An integer between 0 and 59 indicating the seconds value of the indicated Date object. A zero occurs in two situations: the time is less than one second into the current minute, or a time was not stored in the Date object when the object was created. The only way to determine which situation you have is to also check the minutes and hours for zero values. If they are all zeroes, it is nearly certain that the time was not stored in the Date object.. Returns the year value in a Date object. This method is obsolete, and is provided for backwards compatibility only. Use the getFullYear method instead. For the years 1900 though 1999, the year is a 2-digit integer value returned as the difference between the stored year and 1900. For dates outside that period, the 4-digit year is returned. For example, 1996 is returned as 96, but 1825 and 2025 are returned as-is. Parses a JsString containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970. Either a JsString containing a date in a format such as "Jan 5, 1996 08:47:00" or a VT_DATE value retrieved from an ActiveX® object or other object. An integer value representing the number of milliseconds between midnight, January 1, 1970 and the date supplied in dateVal. Sets the numeric day-of-the-month value of the Date object using local time. A numeric value equal to the day of the month. Sets the year value in the Date object using local time. A numeric value equal to the year. Sets the year value in the Date object using local time. A numeric value equal to the year. A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied. Sets the year value in the Date object using local time. A numeric value equal to the year. A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied. A numeric value equal to the day of the month. Return the date in ISO 8601 format. Returns or sets the descriptive JsString associated with a specific error. Returns an error message JsString. Returns the name of an error. When a runtime error occurs, the name property is set to one of the following native exception types: ConversionError This error occurs whenever there is an attempt to convert an object into something to which it cannot be converted. RangeError This error occurs when a function is supplied with an argument that has exceeded its allowable range. For example, this error occurs if you attempt to construct an Array object with a length that is not a valid positive integer. ReferenceError This error occurs when an invalid reference has been detected. This error will occur, for example, if an expected reference is null. RegExpError This error occurs when a compilation error occurs with a regular expression. Once the regular expression is compiled, however, this error cannot occur. This example will occur, for example, when a regular expression is declared with a pattern that has an invalid syntax, or flags other than i, g, or m, or if it contains the same flag more than once. SyntaxError This error occurs when source text is parsed and that source text does not follow correct syntax. This error will occur, for example, if the eval function is called with an argument that is not valid program text. TypeError This error occurs whenever the actual type of an operand does not match the expected type. An example of when this error occurs is a function call made on something that is not an object or does not support the call. URIError This error occurs when an illegal Uniform Resource Indicator (URI) is detected. For example, this is error occurs when an illegal character is found in a JsString being encoded or decoded. Returns or sets the numeric value associated with a specific error. The Error object's default property is number. Calls a method of an object, substituting another object for the current object. The object to be used as the current object. List of arguments to be passed to the method. Calls a method of an object, substituting another object for the current object. Calls a method of an object, substituting another object for the current object. The object to be used as the current object. Applies a method of an object, substituting another object for the current object. The object to be used as the current object. Array of arguments to be passed to the function. The return value of the function Applies a method of an object, substituting another object for the current object. The object to be used as the current object. The return value of the function Returns a reference to the prototype for a class of objects. Returns a reference to the function that invoked the current function. Returns the mathematical constant e, the base of natural logarithms. The E property is approximately equal to 2.718. Returns the natural logarithm of 2. Returns the natural logarithm of 10. Returns the base-2 logarithm of e, Euler's number. Returns the base-10 logarithm of e, Euler's number. Returns the ratio of the circumference of a circle to its diameter, approximately 3.141592653589793. Returns the square root of 0.5, or one divided by the square root of 2. Returns the square root of 2. Returns the absolute value of a number. A numeric expression for which the absolute value is needed The absolute value of the number argument Returns the arccosine of a number. A numeric expression for which the arccosine is needed. the arccosine of the number argument. Returns the arcsine of a number. A numeric expression for which the arcsine is needed. The arcsine of its numeric argument. Returns the arctangent of a number. A numeric expression for which the arctangent is needed. The return value is the arctangent of its numeric argument. Returns the angle (in radians) from the X axis to a point (y,x). A numeric expression representing the cartesian x-coordinate. A numeric expression representing the cartesian y-coordinate. The return value is between -pi and pi, representing the angle of the supplied (y,x) point. Returns the smallest integer greater than or equal to its numeric argument. A numeric expression. An integer value equal to the smallest integer greater than or equal to its numeric argument. Returns the cosine of a number. A numeric expression for which the cosine is needed. The return value is the cosine of its numeric argument. Returns e (the base of natural logarithms) raised to a power. A numeric expression representing the power of e. The return value is a number. The constant e is Euler's number, approximately equal to 2.71828 and number is the supplied argument. Returns the greatest integer less than or equal to its numeric argument. A numeric expression. An integer value equal to the greatest integer less than or equal to its numeric argument. Returns the natural logarithm of a number. A numeric expression for which the natural logarithm is sought. The return value is the natural logarithm of number. The base is e. Returns the greater of zero or more supplied numeric expressions. Numeric expressions to be evaluated If no arguments are provided, the return value is equal to NEGATIVE_INFINITY. If any argument is NaN, the return value is also NaN. Returns the lesser of zero or more supplied numeric expressions. Numeric expressions to be evaluated If no arguments are provided, the return value is equal to NEGATIVE_INFINITY. If any argument is NaN, the return value is also NaN. Returns the value of a base expression taken to a specified power. The base value of the expression. The exponent value of the expression. Returns a pseudorandom number between 0 and 1. The pseudorandom number generated is from 0 (inclusive) to 1 (exclusive), that is, the returned number can be zero, but it will always be less than one. Returns a supplied numeric expression rounded to the nearest integer. The value to be rounded to the nearest integer. For positive numbers, if the decimal portion of number is 0.5 or greater, the return value is equal to the smallest integer greater than number. If the decimal portion is less than 0.5, the return value is the largest integer less than or equal to number. For negative numbers, if the decimal portion is exactly -0.5, the return value is the smallest integer that is greater than the number. Returns the sine of a number. A numeric expression for which the sine is needed The sine of the numeric argument Returns the square root of a number. A numeric expression. If number is negative, the return value is NaN. Returns the tangent of a number. A numeric expression for which the tangent is sought. The tangent of number. An object representation of the number data type and placeholder for numeric constants. Returns the largest number representable in JScript. Equal to approximately 1.79E+308. Returns the number closest to zero representable in JScript. Equal to approximately 5.00E-324. A special value that indicates an arithmetic expression returned a value that was not a number. Returns a value more negative than the largest negative number. Returns a value larger than the largest number. Returns a JsString containing a number represented in exponential notation. Number of digits after the decimal point. Must be in the range 0 – 20, inclusive. A JsString representation of a number in exponential notation. The JsString contains one digit before the significand's decimal point, and may contain fractionDigits digits after it. If fractionDigits is not supplied, the toExponential method returns as many digits necessary to uniquely specify the number. Returns a JsString containing a number represented in exponential notation. A JsString representation of a number in exponential notation. The JsString contains one digit before the significand's decimal point, and may contain fractionDigits digits after it. If fractionDigits is not supplied, the toExponential method returns as many digits necessary to uniquely specify the number. Returns a JsString containing a number represented either in exponential or fixed-point notation with a specified number of digits. Number of significant digits. Must be in the range 1 – 21, inclusive. For numbers in exponential notation, precision - 1 digits are returned after the decimal point. For numbers in fixed notation, precision significant digits are returned. Returns a JsString containing a number represented either in exponential or fixed-point notation with a specified number of digits. For numbers in exponential notation, precision - 1 digits are returned after the decimal point. For numbers in fixed notation, precision significant digits are returned. Returns a JsString representation of an object. Returns the textual representation of the number. Returns a JsString representation of an object. Specifies a radix for converting numeric values to strings. This value is only used for numbers. Returns the textual representation of the number. Returns the primitive value of the specified object. The numeric value. The toFixed() method formats a number to use a specified number of trailing decimals. The number is rounded up, and nulls are added after the decimal point (if needed), to create the desired decimal length. The toFixed() method formats a number to use a specified number of trailing decimals. The number is rounded up, and nulls are added after the decimal point (if needed), to create the desired decimal length. The number of digits after the decimal point. Default is 0 (no digits after the decimal point) An object that contains a regular expression pattern along with flags that identify how to apply the pattern. re = /pattern/[flags] re = new RegExp("pattern"[,"flags"]) If the exec method does not find a match, it returns null. If it finds a match, exec returns an array, and the properties of the global RegExp object are updated to reflect the results of the match. Element zero of the array contains the entire match, while elements 1 – n contain any submatches that have occurred within the match. This behavior is identical to the behavior of the match method without the global flag (g) set. If the global flag is set for a regular expression, exec searches the JsString beginning at the position indicated by the value of lastIndex. If the global flag is not set, exec ignores the value of lastIndex and searches from the beginning of the JsString. The String object or JsString literal on which to perform the search Returns the JsString against which a regular expression search was performed. Read-only. Returns the character position where the first successful match begins in a searched JsString. Read-only. Returns the character position where the next match begins in a searched JsString. Returns the last matched characters from any regular expression search. Read-only. Returns the last parenthesized submatch from any regular expression search, if any. Read-only. Returns the characters from the beginning of a searched JsString up to the position before the beginning of the last match. Read-only. Returns the characters from the position following the last match to the end of the searched JsString. Read-only. Allows manipulation and formatting of text strings and determination and location of substrings within strings. Returns the last occurrence of a substring within a String object. The char to search for within the String object. an integer value indicating the beginning of the substring within the String object. If the substring is not found, a -1 is returned. If startindex is negative, startindex is treated as zero. If it is larger than the greatest character position index, it is treated as the largest possible index. Returns the last occurrence of a substring within a String object. The string to search for within the String object. an integer value indicating the beginning of the substring within the String object. If the substring is not found, a -1 is returned. If startindex is negative, startindex is treated as zero. If it is larger than the greatest character position index, it is treated as the largest possible index. Returns the last occurrence of a substring within a String object. The substring to search for within the String object. Integer value specifying the index to begin searching within the String object. If omitted, searching begins at the end of the string. an integer value indicating the beginning of the substring within the String object. If the substring is not found, a -1 is returned. If startindex is negative, startindex is treated as zero. If it is larger than the greatest character position index, it is treated as the largest possible index. Returns the substring at the specified location within a String object. The zero-based index integer indicating the beginning of the substring. Returns the substring at the specified location within a String object. The zero-based index integer indicating the beginning of the substring. The zero-based index integer indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end. If end is omitted, the characters from start through the end of the original string are returned. Returns a substring beginning at a specified location and having a specified length. The starting position of the desired substring. The index of the first character in the string is zero. The number of characters to include in the returned substring. Returns a substring beginning at a specified location and having a specified length. The starting position of the desired substring. The index of the first character in the string is zero. Returns the character position where the first occurrence of a substring occurs within a String object. Substring to search for within the String object. An integer value indicating the beginning of the substring within the String object. If the substring is not found, a -1 is returned. Returns the character position where the first occurrence of a substring occurs within a String object. Substring to search for within the String object. Integer value specifying the index to begin searching within the String object. If omitted, searching starts at the beginning of the string. An integer value indicating the beginning of the substring within the String object. If the substring is not found, a -1 is returned. Returns the position of the first substring match in a regular expression search. An instance of a Regular Expression object containing the regular expression pattern and applicable flags. The search method indicates if a match is present or not. If a match is found, the search method returns an integer value that indicates the offset from the beginning of the string where the match occurred. If no match is found, it returns -1. Returns the position of the first substring match in a regular expression search. The String object or string literal on which to perform the search. The search method indicates if a match is present or not. If a match is found, the search method returns an integer value that indicates the offset from the beginning of the string where the match occurred. If no match is found, it returns -1. Returns a copy of a string with text replaced using a regular expression or search string. An instance of a Regular Expression object containing the regular expression pattern and applicable flags. Required. A String object or string literal containing the text to replace for every successful match of rgExp in stringObj. In JScript 5.5 or later, the replaceText argument can also be a function that returns the replacement text. The result of the replace method is a copy of stringObj after the specified replacements have been made. Returns a copy of a string with text replaced using a regular expression or search string. String object or literal that is converted to a string, and an exact search is made for the results; no attempt is made to convert the string into a regular expression. Required. A String object or string literal containing the text to replace for every successful match of rgExp in stringObj. In JScript 5.5 or later, the replaceText argument can also be a function that returns the replacement text. The result of the replace method is a copy of stringObj after the specified replacements have been made. Returns a copy of a string with text replaced using a regular expression or search string. Replace function with no params An instance of a Regular Expression object containing the regular expression pattern and applicable flags. You can specify a function as the second parameter. In this case, the function will be invoked after the match has been performed. The function's result (return value) will be used as the replacement string. (Note: the above-mentioned special replacement patterns do not apply in this case.) Note that the function will be invoked multiple times for each full match to be replaced if the regular expression in the first parameter is global. The result of the replace method is a copy of stringObj after the specified replacements have been made. Returns a copy of a string with text replaced using a regular expression or search string. Replace function with no params String object or literal that is converted to a string, and an exact search is made for the results; no attempt is made to convert the string into a regular expression. You can specify a function as the second parameter. In this case, the function will be invoked after the match has been performed. The function's result (return value) will be used as the replacement string. (Note: the above-mentioned special replacement patterns do not apply in this case.) Note that the function will be invoked multiple times for each full match to be replaced if the regular expression in the first parameter is global. The result of the replace method is a copy of stringObj after the specified replacements have been made. The trim method returns the string stripped of whitespace from both ends. trim does not affect the value of the string itself. Supported in Firefox, Chrome, IE 9, Opera 10.5 and Safari 5 (Description from MDN) Replace function with 1 param Replace function with 2 params Replace function with 3 params Replace function with 1 params Replace function with 2 params Replace function with 3 params Returns the length of a String object. Places an HTML anchor with a NAME attribute around specified text in the object. Text you want to place in the NAME attribute of an HTML anchor. Places HTML <BIG> tags around text in a String object. Places HTML <BLINK> tags around text in a String object. Places HTML <B> tags around text in a String object. Returns the character at the specified index. Zero-based index of the desired character. Valid values are between 0 and the length of the string minus 1. Returns an integer representing the Unicode encoding of the character at the specified location. Zero-based index of the desired character. Valid values are between 0 and the length of the string minus 1. Returns a string value containing the concatenation of two or more supplied strings. String objects or literals to concatenate to the end of string1. The result of the concat method is equivalent to: result = string1 + string2 + string3 + + stringN. A change of value in either a source or result string does not affect the value in the other string. If any of the arguments are not strings, they are first converted to strings before being concatenated to string1. Places HTML <TT> tags around text in a String object. Places an HTML <FONT> tag with the COLOR attribute around the text in a String object. Places an HTML <FONT> tag with the SIZE attribute around the text in a String object. Integer value that specifies the size of the text. Returns a string from a number of Unicode character values. A series of Unicode character values to convert to a string. If no arguments are supplied, the result is the empty string. Places HTML <I> tags around text in a String object. Returns a string where all alphabetic characters have been converted to lowercase, taking into account the host environment's current locale. Converts the characters in a string, taking into account the host environment's current locale. In most cases, the results are the same as you would obtain with the toLowerCase method. Results differ if the rules for a language conflict with the regular Unicode case mappings. Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. Converts the characters in a string, taking into account the host environment's current locale. In most cases, the results are the same as you would obtain with the toUpperCase method. Results differ if the rules for a language conflict with the regular Unicode case mappings. Returns a string where all alphabetic characters have been converted to lowercase. The method has no effect on nonalphabetic characters. Returns a string where all alphabetic characters have been converted to uppercase. The method has no effect on non-alphabetic characters. Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search. Required. An instance of a Regular Expression object containing the regular expression pattern and applicable flags. Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search. Required. A string literal containing the regular expression pattern and flags. Returns a section of a string. Returns a section of a string. Performs a locale-aware string comparison The string to compare to An optional array of BCP 47 language codes (see remarks) Optional options (see remarks) a negative number if the string sorts earlier than compareString, a positive number if it sorts afterwards, and 0 if they are the same. A list of language codes can be found here. A description of valid options can be found here. A special class, when used as a method parameter, can be assigned as string, and generates the native js code inside the string A delegate for native javascript A delegate for native javascript A delegate for native javascript A delegate for native javascript A delegate for native javascript A delegate for native javascript A delegate for native javascript A delegate for native javascript A delegate for native javascript A delegate for native javascript A delegate for native javascript A delegate for native javascript A delegate for native javascript A delegate for native javascript Provides extension methods for C# to JavaScript Invisibly converts the string reference to JsString on order to use native javascript string functions Allows converting an object to a different type without affecting the generated javascript code. A quick shortcut to invisibly cast any list to jsarray (usually for Json mode types) A quick shortcut to invisibly cast any list to jsarray (usually for Json mode types) A quick shortcut to invisibly cast any dictionary to JsObject (usually for Json mode types) Returns a Boolean value that indicates whether or not an object is an instance of a particular class or constructed function. This is a JavaScript operator, it is implemented in C# as an extension method. var isArray = obj.instanceof<JsArray>() Tests for the existence of a property in an object. A C# extension for '===' operator A C# extension for '!==' operator Contains all SharpKit compiler attributes used to customize JavaScript output Contains .NET types for primitive JavaScript types such as JsNumber, JsObject, JsArray, etc... Contains all JavaScript global functions in a derivable context class - JsContext This example uses the JsTypeAttribute to instruct SharpKit compiler to convert this class into JavaScript, it also uses the parseInt global JavaScript function, and the toString() function on the JsNumber type. using SharpKit.JavaScript; namespace MyApp.Client { [JsType(JsMode.Global, Filename="MyScript.js")] class MyScript : JsContext { public static void Main() { var x = parseInt("677"); var s = x.toString(); } } } Server side javascript helper, helps binding from C# / aspx files to JavaScript methods Method names are cached Returns javascript code that compiles all jsclr classes (exactly like JsCompiler.Compile() or JsRuntime.Start()) Sets the rules that SharpKit will use when converting this .NET type into JavaScript. This attribute can be used on any type, and as assembly attribute, when used as an assembly attribute, and TargetType is not supplied, it will affect ALL types in the assembly Creates an instance of a JsTypeAttribute Creates an instance of a JsTypeAttribute in the specified JsMode Creates an instance of a JsTypeAttribute in the specified JsMode, and exported to the specified filename Js code that will be written before exporting the type Js code that will be written after exporting the type Precendece between JsTypes in the same file, negative values will put the type before other types, and positive value will put it after other types When used as assembly attribute, indicates the type for which to apply this attribute on. This feature should be used when trying to describe classes on external assemblies that has no SharpKit support When used as assembly attribute, indicates the type for which to apply this attribute on. This feature should be used when trying to describe classes on external assemblies that has no SharpKit support When set to true - SharpKit will ignore all params[] keywords in all methods Indicates that all delegate parameters in all members are native javascript functions When true, omits all casts to this type Forces all properties to be treated as JavaScript native fields without any getter and setter methods Forces all automatic properties to be treated as JavaScript native fields without any getter and setter methods When true, foreach statements will use the for..in syntax of Javascript When true, foreach statements will use the for loop syntax of Javascript When true, instanciations of this class will use the native Javascript method, rather than calling a constructor When true, instanciations of this class will use the native Javascript method, rather than calling a constructor When true, operator overloads will be exported as native js binary operations: if System.Int32 has a '/' operator overload then: x / y -> System.Int32.op_div(x, y); //NativeOperatorOverloads=false x / y -> x / y; //NativeOperatorOverloads=true Indicates that this type will be exported as native js type, only one constructor is allowed, all instance members will be exported to the constructor's prototype all static members will be exported to the constructor's members When set, the class methods and properties will be declared on the window object, instead of a class. Any anonymous delegate creation will be exported as a native inline function in javascript Anonymous objects will be created and treated as Json objects Indicates that SharpKit compiler will generate javascript code for this type / member This property is inherited and applied to all derived types. Default value is true When set, changes the type name in the client code The target filename to generate the javascript code into, when using a relative path, it will be relative to the current cs file, You may use the ~ (tilda) operator to designate the project directory The type of js exporter to use Omits and ignores any generic type argument Omits and ignores any generic argument in any method inside the class (Equivalent to JsMethod(IgnoreGenericArguments=true) on each method) Controls the JavaScript mode of this type, a mode is a combination of several boolean settings of the JsTypeAttribute Forces any delegate used in the current type to be created a native js function without an instance context Declares fields and PropertiesAsFields in object definition, and does not move them to the constructor Omits optional parameters in methods, when not sent by caller Specifies whether or not to declare inheritance of a class to a base class When set to true, if no instance constructor was defined in this class, no constructor will be generated. This is helpful when extending existing classes, and avoiding overwriting existing constructors Targets the attribute for a specific SharpKit version, this attribute will be ignored if the current SharpKit version isn't in the range of the value specified Allows to customize the 'prototype' token for instance method, by default, this value is: "prototype" This property is useful for creating jQuery plugins class MyClass { public void foo() } MyClass.prototype.foo = function() { } When set to true, casting/as/is will be generated using the native "instanceof" keyword When true, Object.defineProperty is used for properties. The browser needs to support native property. The NativePropertyEnumerable property attribute defines whether the property shows up in a for...in loop and Object.keys() or not. Treats the class as a native "Error" object and prevents smart exception throwing The JavaScript code that will be generated when this type is passed as a generic argument to a generic method or generic type Specifies the export and interoperability mode of a C# type in JavaScript Specifies a global function export mode, in which only static members are allowed, static methods become global functions static fields become global variables static constrctor becomes global code Specifies a prototype object export mode, in which a single constructor is allowed, and both static and instance members. constructor becomes a constructor function instance members become the equivalent members on the constructor function's prototype. static members become members on the constructor function itself. Specifies a .NET style class, in which all C# elements are supported, this mode requires JsClr library to be included on the client at runtime. Specifies an invisible unexported json type, this class will not be exported, instantiation and usage of classes in this mode, will be exported to simple json elements. Provides information regarding how SharpKit will export JavaScript code Specifies whether to include C# comments in the JavaScript code Specifies whether SharpKit should minify the exported files Instructs SharpKit to provide any exported function with a global unique name, to help debugging of client side code. Injects profiling code into JavaScript functions to enable performance profiling. Specifies prefix / suffix to any filename exported by SharpKit, e.g.: FilenameFormat="js/{0}" Specifies default js filename for all types that didn't specify a specific js file for export If not specified, default file will be res/[AssemblyName].js Specifies to use the .cs filename for all types that didn't specify a specific js file for export, MyTextBox.cs -> MyTextBox.js Specifies to inject all available helper methods generated by SharpKit into a single separate file, this feature is supported by SharpKit 5 only. Specifies to inject all helper method invocations generated by SharpKit into a single separate file, this feature is supported by SharpKit 5 only. Specifies to generate chrome source maps, which enables debugging of JavaScript in C#. To enable this feature you must add a handler in your web.config file: <add name="SourceMapsHandler" type="SharpKit.Web.Server.Handlers.SourceMapsHandler, SharpKit.Web" verb="*" path="SourceMaps.ashx" /> And enable source maps in chrome: show development bar, click options wheel, check enable source maps. Instructs SharpKit to use '===' and '!==' (exact equals/not equals) instead of '==' / '!=' when checking equality between objects. Custom exact equality can be achieved by using the extension method JsContext.ExactEquals var x = "true"; var y = true; var b = x.ExactEquals(y); Uses the ECMAScript5 strict mode. Removes the 'Generated by SharpKit 5 v...' header comment in js files Add the generation time to the sharpkit header comment. CAUTION: This will change your file's content on every compilation. This could occur unnecessary conflics with version control software! Overrides all OmitCasts definitions in the assembly, and skips any code generation for casting Options are "JavaScript"/null (default) for default js style, or C#/CSharp for C# style Forces integers to remain as integers when casting or using binary operations, by adding (|0) to these expressions Instructs SharpKit Compiler to create a merged file from specified sources The source files to merge The target merged file name Specifies whether to minify the js file using js or css minification minification type will be determined by file extension (.js/.css) Specifies custom instructions for SharpKit for a single method, this information is used when exporting the member, and when using it. When set to true, SharpKit will ignore the params[] keyword on the method parameter Applies the attribute externally on a method, if the method has overloads, attribute will be applied on all of them Applies the attribute externally on a type Applies the attribute externally on a type Tells the compiler to omit calls to this method and assume that it was invoked Extension methods: s.DoSomething() ==> s Instructs SharpKit to use a custom name for a method, SharpKit will use this name when exporting the method, and when invoking it. Tells the compiler to drop the method call and write the inline code instead. Only available for extention methods. object.SomeExtentionMethod(param) with InlineCode="object==param" ==> object==param Custom javascript code implementation for this method When set to true - disables the overloading mechanism and assumes that the overloads are implemented in a single javascript method with this name Ignores the generic arguments passed to a method when invoking it in JavaScript Marks this extension method as an instance method in javascript Treats delegates inside this method as native javascript functions. Forces any delegate used in the current method to be created a native js function without an instance context Generates the method code as global JavaScript code, without any function Indicates that this method is global, if exported, it will be exported as a global function, and when invoked, it will be invoked without a class name prefix Indicates that SharpKit compiler will generate javascript code for this type / member This property is inherited and applied to all derived types. Default value is true Omits the paranthesis () when invoking this method, used for javascript keywords (e.g.: delete) Omits the dot (.) operator before the instance name, when invoking this method, used for javascript keywords (e.g.: instanceof) Omits optional parameters, when not sent by caller Omits the new operator when creating new instances on a consutrctor Allows an instance method to be invoke like an extension method x.Call() -> Call(x) Sets a custom string to be inserted before arguments are written when invoking a function This is useful for method optimizations x.Call(a,b,c) -> x.Call("MyCustomCode",a,b,c); Sets a custom string to be appended after arguments are written when invoking a function This is useful for method optimizations x.Call(a,b,c) -> x.Call(a,b,c,"MyCustomCode"); Inserts a custom argument when invoking the function Inserts a custom argument when invoking the function Inserts a custom argument when invoking the function Causes the function to be invoked without any commas between arguments: x.Call(a,b,c) -> x.Call(abc); Sends initializers to constructor as a parameter: Collection initializers as Json arrays Object initializers as a Json object Important note: a new json / array object will ALWAYS be passed to the constructor, even if no object initializers are passed. Targets the attribute for a specific SharpKit version, this attribute will be ignored if the current SharpKit version isn't in the range of the value specified Manual code expression inlining, SharpKit will parse this code, and replace the parameters with the real code passed to the function, allowing to customize the way the invocation code is generated Specifies custom instructions for SharpKit for a property, this information is used when exporting the member, and when using it. When set, all references will not use getters and setter, but will treat it as a field instead Default value is false When applied to an indexer property, all references will not use getters and setter, but will treat it as a native indexer instead Default value is false Indicates that SharpKit compiler will generate javascript code for this type / member This property is inherited and applied to all derived types. Default value is true Applies the attribute externally on a property Applies the attribute externally on a type Applies the attribute externally on a type Sets a static property as a global property - omits the class name when declaring and invoking the property When true, Object.defineProperty is used for properties. The browser needs to support native property. The NativePropertyEnumerable property attribute defines whether the property shows up in a for...in loop and Object.keys() or not. Specifies custom instructions for SharpKit for an event, this information is used when exporting the member, and when using it. Indicates that SharpKit compiler will generate javascript code for this field This property is inherited and applied to all derived types. Default value is true Causes an event to be treated as a native JavaScript function Specifies custom instructions for SharpKit for a delegate, this information is used when exporting the member, and when using it. Causes a delegate to be treated as a native JavaScript function Causes a delegate to be treated as a native JavaScript function without instance context support, this means that any instance context using the 'this' keyword will be lost Controls the interoperability and conversion of a .NET enum type into JavaScript. When type is exported, the value of every enum member will be its string name representation, and not its numeric value When used as assembly attribute, indicates the type for which to apply this attribute on. This feature should be used when trying to describe classes on external assemblies that has no SharpKit support When used as assembly attribute, indicates the type for which to apply this attribute on. This feature should be used when trying to describe classes on external assemblies that has no SharpKit support Specifies custom instructions for SharpKit for a property, this information is used when exporting the member, and when using it. Indicates that SharpKit compiler will generate javascript code for this field This property is inherited and applied to all derived types. Default value is true Instructs SharpKit to use a custom name for this field, SharpKit will use this name when exporting the field, and when using it in code. Allows mapping and replacement between C# and JavaScript namespace. Useful for creating shorter namespaces in JavaScript The C# namespace to be mapped (cannot be null or empty) The JavaScript namespace that should be replaced (can be empty, not recommended) SharpKit core assembly, contains all needed attributes and types required to use SharpKit