sonygod / sharpkit

Automatically exported from code.google.com/p/sharpkit
0 stars 0 forks source link

Missing documentation - XMLHttpRequest #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As in here
http://msdn.microsoft.com/en-us/library/ms535874(v=vs.85).aspx

Might want to consider adding an export feature to allow constants to be 
exported as values so we can add this class for better readability.

[JsType(Export=false)]
class XMLHttpRequestReadyState
{
   ...
  [JsConst(ExportToValue=true)]
  const AllDatReceived = 4
}

so C# code can read

if (req.readyState == XMLHttpRequestReadyState.AllDatReceived) {...}

and JS code will read:

 if (req.readyState == 4)) {...}

 Either way possible values for all enums would help if they appear in XmlComments

Original issue reported on code.google.com by giladkhen@gmail.com on 1 Jun 2011 at 2:54

GoogleCodeExporter commented 9 years ago

Original comment by DanelK...@gmail.com on 28 Oct 2011 at 9:50