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
| void scrim_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e) | |
| { | |
| XElement xmlScrim = XElement.Parse(e.Result, LoadOptions.None); | |
| RunOnUiThread(() => { | |
| var scrimresult = FindViewById<EditText>(Resource.Id.result); | |
| scrimresult.Text = xmlScrim.Element("url").Value; | |
| }); | |
| } |
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
| // nested enum type | |
| using System; | |
| class Test { | |
| public enum Foo { | |
| A | |
| } | |
| static void Main () | |
| { |
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.Reflection; | |
| [assembly: AssemblyVersion("2.2.*")] | |
| class Test { | |
| static void Main () | |
| { | |
| Console.WriteLine ("Version: {0}", | |
| Assembly.GetExecutingAssembly ().GetName ().Version); |
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 | |
| { |