BenchmarkDotNet=v0.11.3, OS=Windows 10.0.17758
Intel Core i5-2500K CPU 3.30GHz (Sandy Bridge), 1 CPU, 4 logical and 4 physical cores
[Host] : .NET Framework 4.7.2 (CLR 4.0.30319.42000), 64bit RyuJIT-v4.7.3190.0
LegacyJit x64 : .NET Framework 4.7.2 (CLR 4.0.30319.42000), 64bit LegacyJIT/clrjit-v4.7.3190.0;compatjit-v4.7.3190.0
LegacyJit x86 : .NET Framework 4.7.2 (CLR 4.0.30319.42000), 32bit LegacyJIT-v4.7.3190.0
Mono x64 : Mono 5.10.0 (Visual Studio), 64bit
Mono x86 : Mono 5.10.0 (Visual Studio), 32bit
RyuJit x64 : .NET Framework 4.7.2 (CLR 4.0.30319.42000), 64bit RyuJIT-v4.7.3190.0
This file contains 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.Runtime.InteropServices; | |
class Program | |
{ | |
[StructLayout(LayoutKind.Explicit)] | |
struct Union | |
{ | |
[FieldOffset(0)] | |
public string str; |
This file contains 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.Runtime.InteropServices; | |
class Program | |
{ | |
[StructLayout(LayoutKind.Explicit)] | |
struct Number | |
{ | |
[FieldOffset(0)] | |
public uint i; |
This file contains 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.Runtime.InteropServices; | |
class Program | |
{ | |
[StructLayout(LayoutKind.Explicit)] | |
struct Union | |
{ | |
[FieldOffset(0)] | |
public Foo foo; | |
[FieldOffset(0)] |
This file contains 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 SyntaxTree.VisualStudio.Unity.Bridge; | |
using UnityEditor; | |
[InitializeOnLoad] | |
public class ReferenceExterminator | |
{ | |
static ReferenceExterminator() | |
{ | |
ProjectFilesGenerator.ProjectFileGeneration += OnProjectFileGeneration; | |
} |
This file contains 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 Random = UnityEngine.Random; | |
public class UniqueRandom | |
{ | |
private readonly int[] numbers; | |
private int index; |
This file contains 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.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
public class Cinema4DModelPostprocessor : AssetPostprocessor | |
{ | |
private readonly Quaternion rotation = Quaternion.Euler(0, 180, 0); | |
private void OnPostprocessModel(GameObject go) |