This was taken from http://rxwiki.wikidot.com/101samples, because I wanted to be able to read it more comfortable with syntax highlighting.
Here's the unedited original, translated to Github Markdown glory:
| using System.IO; | |
| using System.Text; | |
| using System.Xml; | |
| using System.Xml.Serialization; | |
| namespace AutoSenderService | |
| { | |
| public static class XmlSerializerHelper | |
| { | |
| public static string Serialize<T>(T item) |
| <html> | |
| <head> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge;chrome=1" /> | |
| </head> | |
| </html> |
| // The same but for 'GET' | |
| $.ajax({ | |
| url: '/Backend/Article/GetChildArticleIds', | |
| traditional: true, | |
| data: { | |
| filter: '', | |
| fieldId: 1115, | |
| ids: [19975] | |
| } |
| using System; | |
| using System.Globalization; | |
| using System.Threading; | |
| namespace Program | |
| { | |
| public class Program | |
| { | |
| private static void thread_test() | |
| { |
| using System; | |
| using System.IO; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| using Microsoft.Win32.SafeHandles; | |
| namespace ConsoleUI | |
| { | |
| /// <summary> | |
| /// Configure console to use with WF |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using DocumentFormat.OpenXml.Packaging; | |
| using DocumentFormat.OpenXml.Spreadsheet; | |
| namespace OpenXML_ReadAndReplaceMarks | |
| { | |
| class Program | |
| { |
| .disable-hover { | |
| pointer-events: none; | |
| } |
| var a = 'один аргумент'; | |
| console.log(a); | |
| console.log('много аргументов', 12, true, [1,2,3], {a:1,b:2}); | |
| console.log('Node', document.getElementsByTagName('body')); | |
| console.log('DOM', document); | |
| console.log('функция', alert); | |
| console.log('прочее', NaN, null, undefined); | |
| console.log('У Пети было %d %s',10,'яблок'); | |
| console.log('Пи равно %f',Math.PI); |
| using Newtonsoft.Json; | |
| using System; | |
| using System.Web.Mvc; | |
| namespace Proxy.Mvc.Extensions.ActionResults | |
| { | |
| public class JsonNetResult<T> : JsonResult | |
| { | |
| public JsonNetResult(T data) | |
| { |
This was taken from http://rxwiki.wikidot.com/101samples, because I wanted to be able to read it more comfortable with syntax highlighting.
Here's the unedited original, translated to Github Markdown glory: