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 | |
Mono C# Shell, type "help;" for help | |
Enter statements below. | |
csharp> v.GetType().FullName; | |
"System.Int16" | |
csharp> v += 1; | |
csharp> v.GetType().FullName; | |
"System.Int32" | |
csharp> v = int.MaxValue; |
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 Android.App; | |
using Android.Content; | |
using Android.Runtime; | |
using Android.Views; | |
using Android.Widget; | |
using Android.OS; | |
using Android.Webkit; |
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/tools/mkbundle/mkbundle.cs b/mcs/tools/mkbundle/mkbundle.cs | |
index 945522b..77cc712 100644 | |
--- a/mcs/tools/mkbundle/mkbundle.cs | |
+++ b/mcs/tools/mkbundle/mkbundle.cs | |
@@ -14,10 +14,10 @@ using System.Xml; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using System.IO; | |
+using System.IO.Compression; | |
using System.Runtime.InteropServices; |
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
./de-DE/MyResources.resources.dll | |
./de-DE/Scratch.I18n.resources.dll | |
./fr-CA/MyResources.resources.dll | |
./fr-CA/Scratch.I18n.resources.dll | |
./MyResources.dll | |
./MyResources.dll.mdb | |
./Scratch.I18n.exe | |
./Scratch.I18n.exe.mdb |
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
// To allow this project to build: https://dl.dropbox.com/u/15227809/Xamarin/HZLVBinding.zip | |
// Add a new file to the HZLVBinding project with these contents: | |
using Android.Runtime; | |
namespace Com.Devsmart.Android.UI { | |
partial class HorizontalListView { | |
protected override Java.Lang.Object RawAdapter { | |
get {return Adapter.JavaCast<Java.Lang.Object>();} |
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 = XElement.Parse("<MEMLOC loc= '0x55E155' />"); | |
csharp> x.Descendants("MEMLOC"); | |
{ } | |
csharp> x.DescendantsAndSelf("MEMLOC"); | |
{ <MEMLOC loc="0x55E155" /> } | |
csharp> x.DescendantNodes(); | |
{ } | |
csharp> x.DescendantNodesAndSelf(); | |
{ <MEMLOC loc="0x55E155" /> } | |
csharp> |
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.Linq; | |
using System.Threading; | |
class Test { | |
const int NumBusyWaiters = 10; | |
public static void Main () | |
{ | |
AppDomain.CurrentDomain.ProcessExit += (s, e) => { |
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
static readonly IList<ViewModel> registeredEntities = new List<ViewModel>(); | |
protected static IList<ViewModel> RegisteredViewModels | |
{ | |
get | |
{ | |
return registeredEntities; | |
} | |
} |
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/PluginExample/Program.cs b/PluginExample/Program.cs | |
index 7d45ae6..1e320f5 100644 | |
--- a/PluginExample/Program.cs | |
+++ b/PluginExample/Program.cs | |
@@ -1,5 +1,6 @@ | |
using System; | |
using System.Net; | |
+using System.IO; | |
using System.Security; | |
using System.Security.Permissions; |
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 | |
using SyMono C# Shell, type "help;" for help | |
Enter statements below. | |
csharp> using System.Text.RegularExpressions; | |
csharp> var r = new Regex (@"^\s*(?<name>[A-Za-z0-9_]+)\s*=\s*(?<value>[^\s]+)\s*;"); | |
csharp> var m = r.Match ("Foo = Bar;"); | |
csharp> m.Success; | |
true | |
csharp> var name = m.Groups ["name"].Value; |