- (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
import kotlinx.coroutines.CoroutineDispatcher | |
import kotlinx.coroutines.CoroutineScope | |
import kotlinx.coroutines.CoroutineStart | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.Job | |
import kotlinx.coroutines.coroutineScope | |
import kotlinx.coroutines.delay | |
import kotlinx.coroutines.launch | |
import kotlinx.coroutines.runBlocking | |
import kotlinx.coroutines.withContext |
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
package | |
import org.junit.rules.TestRule | |
import org.junit.runner.Description | |
import org.junit.runners.model.Statement | |
import java.util.concurrent.TimeUnit | |
import io.reactivex.Scheduler | |
import io.reactivex.android.plugins.RxAndroidPlugins |
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
$ ./gradlew ktlintCheck --no-daemon | |
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 | |
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.6/userguide/gradle_daemon.html. | |
Daemon will be stopped at the end of the build stopping after processing | |
> Task :samples:android-app:ktlintDebugAndroidTestCheck | |
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 | |
> Task :samples:android-app:ktlintDebugCheck | |
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 |
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
const photos = document.querySelectorAll('#contents > section:nth-child(6) > div > div > div.instructorPhoto > a > img'); | |
photos.forEach(function(e) { e.parentElement.removeChild(e); }); | |
const memos = document.querySelectorAll('#contents > section:nth-child(6) > div > div > div.lessonDetail > p.memo'); | |
memos.forEach(function(e) { e.parentElement.removeChild(e); }); | |
const reviews = document.querySelectorAll('#contents > section:nth-child(6) > div > div > div.lessonDetail > p:nth-child(2)'); | |
reviews.forEach(function(e) { e.parentElement.removeChild(e); }); | |
const instructors = $x('//*[@id="contents"]/section[5]/div/div/div[2]/p/text()[3]'); |
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
dependencies { | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
compile 'com.android.support:recyclerview-v7:22.2.1' | |
compile 'com.squareup.dagger:dagger:1.2.2' | |
provided 'com.squareup.dagger:dagger-compiler:1.2.2' | |
testCompile 'com.squareup.assertj:assertj-android:1.1.0' | |
testCompile 'org.robolectric:robolectric:3.0' | |
testCompile('org.robolectric:shadows-support-v4:3.0') { | |
exclude module: 'support-v4' | |
} |
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; | |
using NUnit.Framework; | |
namespace MonoSandboxTest | |
{ | |
[TestFixture] | |
public class WeakReferenceTest | |
{ |
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() | |
{ |
- 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
using System; | |
using System.Collections.Generic; | |
using System.Reflection; | |
public abstract class Enumeration : IComparable | |
{ | |
#region Properties | |
public int Value { get { return value; } } |