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.Collections.Generic; | |
using System.Text.RegularExpressions; | |
using Mono.Cecil; | |
namespace NamespaceRenamer | |
{ | |
class Program | |
{ | |
class Transform | |
{ |
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 string GetStateString(JobState state) | |
{ | |
string strState = null; | |
switch (state) | |
{ | |
case JobState.Started: strState = "Started"; break; | |
case JobState.Edited: strState = "Edited"; break; | |
case JobState.Running: strState = "Running"; break; | |
case JobState.Suspended: strState = "Suspended"; break; | |
case JobState.Signed: strState = "Signed"; break; |
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
1. Create C# app | |
2. Install-Package IronScheme.Code | |
3. Add code: | |
using System; | |
using IronScheme; | |
public class Program | |
{ | |
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
// 1. Create C# app | |
// 2. Install-Package IronScheme.Core | |
// 3. Add code: | |
using System; | |
using IronScheme; | |
public class Program | |
{ | |
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
[SecuritySafeCritical] | |
public virtual void Flush(bool flushToDisk) | |
{ | |
if (this._handle.IsClosed) | |
{ | |
__Error.FileNotOpen(); | |
} | |
this.FlushInternalBuffer(); | |
if (flushToDisk && this.CanWrite) | |
{ |
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 MathNet.Numerics; | |
using System; | |
using System.Numerics; | |
namespace ConsoleApplication21 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
fxdiv0 | |
int d = 0; | |
00000000 push ebp | |
00000001 mov ebp,esp | |
00000003 push edi | |
00000004 push esi | |
00000005 mov esi,ecx | |
00000007 mov ecx,edx | |
00000009 xor edx,edx |
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
Other affiliations: | |
United Federation of Planets (46379.1 - 46831.5) | |
Responsibilities: | |
- Cleaning plasma warp coils | |
- Assist in dylithium crystal alignment | |
- Replacement of bio-neural gel packs in the Jefferies tubes |
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
No inlining | |
=========== | |
.NET 3.5 (32-bit): | |
3369 | |
4823 | |
4363 | |
.NET 3.5 (64-bit): | |
3362 | |
3842 | |
6734 |
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 unsafe CharUnicodeInfo() | |
{ | |
m_pDataTable = GlobalizationAssembly.GetGlobalizationResourceBytePtr(typeof(CharUnicodeInfo).Assembly, "charinfo.nlp"); | |
UnicodeDataHeader* pDataTable = (UnicodeDataHeader*) m_pDataTable; | |
m_pCategoryLevel1Index = (ushort*) (m_pDataTable + pDataTable->OffsetToCategoriesIndex); | |
m_pCategoriesValue = m_pDataTable + ((byte*) pDataTable->OffsetToCategoriesValue); | |
m_pNumericLevel1Index = (ushort*) (m_pDataTable + pDataTable->OffsetToNumbericIndex); | |
m_pNumericValues = m_pDataTable + ((byte*) pDataTable->OffsetToNumbericValue); | |
m_pDigitValues = (DigitValues*) (m_pDataTable + pDataTable->OffsetToDigitValue); | |
nativeInitTable(m_pDataTable); |