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
Error decompiling @06000040 SampleClassLibrary.FizzBuzz.AddRule | |
in assembly "C:\Users\tomoe\source\repos\SampleClassLibrary\SampleClassLibrary\bin\Release\netstandard2.1\Confused\SampleClassLibrary.dll" | |
---> System.OverflowException: 配列の次元が、サポートされている範囲を超えました。 | |
at ICSharpCode.Decompiler.Disassembler.ILParser.DecodeSwitchTargets(BlobReader& blob) in ILParser.cs:line 81 | |
at ICSharpCode.Decompiler.IL.ILReader.DecodeSwitch() in ILReader.cs:line 1796 | |
at ICSharpCode.Decompiler.IL.ILReader.DecodeInstruction() in ILReader.cs:line 985 | |
at ICSharpCode.Decompiler.IL.ILReader.ReadInstructions(CancellationToken cancellationToken) in ILReader.cs:line 443 | |
at ICSharpCode.Decompiler.IL.ILReader.ReadIL(MethodDefinitionHandle method, MethodBodyBlock body, GenericContext genericContext, ILFunctionKind kind, CancellationToken cancellationToken) in ILReader.cs:line 581 | |
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileBody(IMethod method, EntityDeclaration entityDecl, DecompileRun decompileRun, ITypeResolve |
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
// SampleClassLibrary.FizzBuzz | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
using SampleClassLibrary; | |
public class FizzBuzz | |
{ | |
public class Rule |
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
// SampleClassLibrary.FizzBuzz | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
using SampleClassLibrary; | |
public class FizzBuzz | |
{ | |
public class Rule |
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
// SampleClassLibrary.FizzBuzz | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
using SampleClassLibrary; | |
public class FizzBuzz | |
{ | |
public class Rule |
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.Collections.Generic; | |
using System.Linq; | |
using SampleClassLibrary; | |
public class FizzBuzz | |
{ | |
public class Rule | |
{ | |
public Func<int, bool> Condition { get; } |
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.Collections; | |
using System.Collections.Generic; | |
class PriorityQueue<T> where T : IComparable<T> | |
{ | |
private readonly T[] _array; | |
private readonly IComparer _comparer; | |
public int Count { get; private set; } = 0; | |
public T Root => _array[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; | |
public class Sort | |
{ | |
public static void Main(string[] args) | |
{ | |
var targetArray = new int[11] { 11, 300, 10, 51, 126, 1, 53, 14, 12, 55, 6 }; | |
Console.WriteLine(string.Join(",", targetArray)); |
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.Linq; | |
using System.Text; | |
using UnityEngine; | |
namespace MultipleRegressionModel | |
{ | |
public class MultipleRegressionModel : MonoBehaviour | |
{ | |
// 繰り返し回数(この書き方だとインスペクター優先になります) | |
[SerializeField] private int _iters = 10000; |
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.IO; | |
using System.Linq; | |
using UnityEngine; | |
namespace MultipleRegressionModel | |
{ | |
public static class DatasetReader | |
{ | |
private const string FILE_NAME = "dataset2"; |