{infiniteZest}
// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
AJAX
Apple
ASP.NET
.NET
Git
Google / Android
Python / IronPython
Miscellaneous
SQL Server
AJAX Source Viewer
View the source code of a Method from ASP.NET AJAX Library. Choose a method from the menu items above (Namespaces, Classes, or Methods).
Method 'toString(separator)'
Method: toString(separator)
Method Full Name:     Sys$StringBuilder$toString(separator)
Class: StringBuilder
Namespace: Sys
Source File: MicrosoftAjax.debug.js
1   function Sys$StringBuilder$toString(separator) {
2     /// <summary locid="M:J#Sys.StringBuilder.toString" />
3     /// <param name="separator" type="String" optional="true" mayBeNull="true"></param>
4     /// <returns type="String"></returns>
5     var e = Function._validateParams(arguments, [
6     {name: "separator", type: String, mayBeNull: true, optional: true}
7     ]);
8     if (e) throw e;
9     separator = separator || '';
10    var parts = this._parts;
11    if (this._len !== parts.length) {
12      this._value = {};
13      this._len = parts.length;
14    }
15    var val = this._value;
16    if (typeof(val[separator]) === 'undefined') {
17      if (separator !== '') {
18        for (var i = 0; i < parts.length;) {
19          if ((typeof(parts[i]) === 'undefined') || (parts[i] === '') || (parts[i] === null)) {
20            parts.splice(i, 1);
21          }
22          else {
23            i++;
24          }
25        }
26      }
27      val[separator] = this._parts.join(separator);
28    }
29    return val[separator];
30  }
This is the JavaScript source for method toString(separator) from ASP.NET AJAX Library. Full name for this method is Sys$StringBuilder$toString(separator). It belongs to the class StringBuilder, which is in Sys namespace. This source is in MicrosoftAjax.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map