Skip to content
Browse files

Added some useful generic overloads.

  • Loading branch information...
1 parent 012d1f7 commit 331849fe12117dbf9c2f75d5f672af5ae84ffcfe @nikhilk committed Aug 26, 2012
Showing with 19 additions and 0 deletions.
  1. +11 −0 src/Core/CoreLib/Arguments.cs
  2. +4 −0 src/Libraries/Web/Html/Document.cs
  3. +4 −0 src/Libraries/Web/Html/DocumentInstance.cs
View
11 src/Core/CoreLib/Arguments.cs
@@ -49,6 +49,17 @@ public static class Arguments {
return null;
}
+ /// <summary>
+ /// Retrieves the specified actual argument value passed to the
+ /// function by index.
+ /// </summary>
+ /// <param name="index">The index of the argument to retrieve.</param>
+ /// <typeparam name="T">The type of the return value.</typeparam>
+ /// <returns>The value of the specified argument.</returns>
+ public static T GetArgument<T>(int index) {
+ return default(T);
+ }
+
[ScriptAlias("Array.toArray")]
public static Array ToArray() {
return null;
View
4 src/Libraries/Web/Html/Document.cs
@@ -182,6 +182,10 @@ public static class Document {
return null;
}
+ public static TElement GetElementById<TElement>(string id) where TElement : Element {
+ return null;
+ }
+
public static ElementCollection GetElementsByClassName(string className) {
return null;
}
View
4 src/Libraries/Web/Html/DocumentInstance.cs
@@ -187,6 +187,10 @@ public sealed class DocumentInstance {
return null;
}
+ public TElement GetElementById<TElement>(string id) where TElement : Element {
+ return null;
+ }
+
public ElementCollection GetElementsByClassName(string className) {
return null;
}

0 comments on commit 331849f

Please sign in to comment.
Something went wrong with that request. Please try again.