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
| internal sealed class RunescapeClient : WebBrowser | |
| { | |
| private const string RUNESCAPE_CLIENT_URL = "http://oldschool33.runescape.com/j1"; | |
| internal RunescapeClient() | |
| { | |
| ScrollBarsEnabled = false; | |
| ScriptErrorsSuppressed = true; | |
| IsWebBrowserContextMenuEnabled = false; | |
| AllowWebBrowserDrop = false; |
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
| public static class DebuggingExtensions | |
| { | |
| public static string ToStringAutomatic<T>(this T obj) | |
| { | |
| const string Seperator = ", "; | |
| const BindingFlags BindingFlags = BindingFlags.Instance | BindingFlags.Public; | |
| var objProperties = | |
| from property in obj.GetType().GetProperties(BindingFlags) | |
| where property.CanRead |
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
| .assembly extern mscorlib {} | |
| .assembly Test | |
| { | |
| .ver 1:0:1:0 | |
| } | |
| .module test.exe | |
| .method static void main() cil managed | |
| { |
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
| .assembly extern mscorlib {} | |
| .assembly Test | |
| { | |
| .ver 1:0:1:0 | |
| } | |
| .module test.exe | |
| .method static void main() cil managed | |
| { |
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
| .assembly extern mscorlib {} | |
| .assembly Test | |
| { | |
| .ver 1:0:1:0 | |
| } | |
| .module test.exe | |
| .method static void main() cil managed | |
| { |
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 Microsoft.CSharp; | |
| using Microsoft.VisualBasic; | |
| using System; | |
| using System.CodeDom; | |
| using System.CodeDom.Compiler; | |
| using System.IO; | |
| using System.Reflection; | |
| using System.Text; | |
| namespace Code |
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
| public sealed class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var result = Math.AddNumbers(10, 20); | |
| Console.WriteLine(result); | |
| Console.ReadKey(); | |
| } | |
| } |
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.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| using System.Runtime.InteropServices; | |
| namespace Code | |
| { |
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
| public static class AutomaticIterator | |
| { | |
| public static void ForEach<T>(this IEnumerable<T> iterable, Action<T> action) | |
| { | |
| var iterator = iterable.GetEnumerator(); | |
| using (iterator) | |
| { | |
| while (iterator.MoveNext()) | |
| { | |
| action(iterator.Current); |
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
| public abstract class SettingsBase<T> where T : SettingsBase<T>, new() | |
| { | |
| protected virtual string SavePath | |
| { | |
| get | |
| { | |
| return BuildDefaultSavePath(); | |
| } | |
| } |