This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net; | |
using System.Linq; | |
using System.Text; | |
class Test { | |
public static void Main () | |
{ | |
WebHeaderCollection headers = new WebHeaderCollection(); | |
headers.Add("test1","test2"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ENV_VAR</key> | |
<string>VALUE</string> | |
</dict> | |
</plist> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Member MemberName="Sort"> | |
<MemberSignature Language="ILAsm" Value=".method public hidebysig static void Sort(class System.Array keys, class System.Array items, int32 index, int32 length, class System.Collections.IComparer comparer)" /> | |
<MemberSignature Language="C#" Value="public static void Sort(Array keys, Array items, int index, int length, IComparer comparer);" /> | |
<MemberType>Method</MemberType> | |
<ReturnValue> | |
<ReturnType>System.Void</ReturnType> | |
</ReturnValue> | |
<Parameters> | |
<Parameter Name="keys" Type="System.Array" /> | |
<Parameter Name="items" Type="System.Array" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
using Mono.Unix; | |
using Mono.Unix.Native; | |
class Test { | |
static void Main () | |
{ | |
StartHandler(); | |
Console.WriteLine("Press any key to exit..."); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Register ("android/accounts/AccountManagerFuture", DoNotGenerateAcw=true)] | |
interface IAccountManagerFuture { | |
[Register ("cancel", "(Z)Z", "GetCancelHandler:AccountManagerFutureInvoker, YourAssemblyName, Version=0.0.0")] | |
bool Cancel (bool mayInterruptIfRunning); | |
// ... | |
} | |
class IAccountManagerFutureInvoker : IAccountManagerFuture { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ValueComparer<T> : IComparer<T>, IEqualityComparer<T> | |
{ | |
Func<T, T, int> comparer; | |
Func<T, int> getHashCode; | |
public ValueComparer(Func<T, T, int> comparer, Func<T, int> getHashCode = null) | |
{ | |
this.comparer = comparer; | |
this.getHashCode = getHashCode; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* output: | |
# test2: (* 10 10 ) | |
# test: (+ 10 ((* 10 10 ))) | |
# test2: (* 10 10 ) | |
*/ | |
namespace Schemin.AST | |
{ | |
public interface IScheminType | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
csharp> var x = "<response xmlns='http://example.org/'><video>Hi!</video></response>"; | |
csharp> var xs = new StringReader(x); | |
csharp> var d = new XmlDocument(); | |
csharp> d.Load(xs); | |
csharp> foreach (XmlNode n in d.DocumentElement.SelectNodes("video")) Console.WriteLine(n.Name); | |
# Note: no output | |
csharp> var mgr = new XmlNamespaceManager (d.NameTable); | |
csharp> mgr.AddNamespace("lol", "http://example.org/"); | |
csharp> foreach (XmlNode n in d.DocumentElement.SelectNodes("lol:video", mgr)) Console.WriteLine(n.Name); | |
video |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enter statements below. | |
csharp> var x = "<response><video>Hi!</video></response>"; | |
csharp> using System.IO; | |
csharp> using System.Xml; | |
csharp> var xs = new StringReader(x); | |
csharp> var d = new XmlDocument(); | |
csharp> d.Load(xs); | |
csharp> d.DocumentElement; | |
{ { { } } } | |
csharp> d.DocumentElement.Name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mcs/mcs/doc.cs b/mcs/mcs/doc.cs | |
index 7107568..2b8ed2c 100644 | |
--- a/mcs/mcs/doc.cs | |
+++ b/mcs/mcs/doc.cs | |
@@ -720,8 +720,16 @@ namespace Mono.CSharp { | |
if (paramSpec.Length > 0) | |
paramSpec += ")"; | |
- string name = mc is Constructor ? "#ctor" : mc.Name; | |
- if (mc.MemberName.IsGeneric) |