- C#でパターンマッチング実装してみた感じ。
- case式といった方が正しいかもしれない
- 使い方はCaseTest.csを読んでください。
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
#import <Foundation/Foundation.h> | |
@interface NSDictionary (QueryStringBuilder) | |
- (NSString *)queryString; | |
@end |
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.Reflection; | |
using System.Linq; | |
using UnityEditor; | |
public static class SyncVsOnlyCSharp | |
{ | |
[MenuItem("Assets/Sync MonoDevelop Project (CSharp-Only)")] | |
public static void SyncMonoDevelopProject() | |
{ |
- (705724) - iOS/IL2CPP: Allow Type.GetType(string) to return a proper value on 32-bit ARMv7 builds.
- (696745) - iOS/IL2CPP: Generate correct C++ code for the IL add opcode with pointers in unsafe C# code.
- (702203) - iOS/IL2CPP: Prevent a C++ compiler error in generated code which happens when a pointer is assigned a value which is a uintptr_t in converted unsafe C# code.
- (693259) - iOS/IL2CPP: Prevent AES encryption types from being incorrectly stripped when they are used.
- (695319) - iOS/IL2CPP: Prevent an intermittent crash on ARM64 when an live object is incorrectly reclaimed but the garbage collector.
- (705860) - iOS/IL2CPP: The Preserve attribute can now be used in the managed code for an assembly to preserve all of the code in an assembly.
- (705860) - iOS/IL2CPP: The preserve attribute can now be used with the assembly element in a link.xml file to preserve all of the code in an assembly.
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
#!/bin/sh | |
usage() { | |
echo Usage: $0 [OPTIONS] DIRECTORY FILEPATTERN | |
echo; | |
echo "\t\tOPTIONS equivalent to OPTIONS of sed" | |
} | |
case "$#" in | |
2) find $1 -name $2 | xargs sed -e 's/[^\x00-\x7E]//g' | less;; | |
3) find $2 -name $3 | xargs sed $1 's/[^\x00-\x7E]//g';; | |
*) usage;; |
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
@echo off | |
echo %0: Running. | |
set PWD=%~dp0 | |
cd %PWD% | |
if "%HOME%" equ "" ( | |
echo %0: Error. Please set HOME. | |
goto FAIL | |
) |
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
module A { | |
module B { | |
class Fuga { | |
} | |
} | |
} |
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 UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class Hoge : MonoBehaviour | |
{ | |
public List<Vector3> Points; | |
// Use this for initialization | |
void Start() |
OlderNewer