summaryrefslogtreecommitdiff
path: root/src/dotnet-library/scala/compat/Platform.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotnet-library/scala/compat/Platform.scala')
-rw-r--r--src/dotnet-library/scala/compat/Platform.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dotnet-library/scala/compat/Platform.scala b/src/dotnet-library/scala/compat/Platform.scala
index 161423bedb..8b31b52539 100644
--- a/src/dotnet-library/scala/compat/Platform.scala
+++ b/src/dotnet-library/scala/compat/Platform.scala
@@ -17,6 +17,7 @@ import Predef._
object Platform {
type StackOverflowError = System.StackOverflowException
+ type ConcurrentModificationException = System.Exception
/**
* @param src ..
@@ -41,6 +42,8 @@ object Platform {
def createArray(elemClass: Class, length: Int): AnyRef =
System.Array.CreateInstance(elemClass, length);
+ def arrayclear(arr: Array[Int]): Unit = System.Array.Clear(arr.asInstanceOf[System.Array], 0, arr.length)
+
def getClassForName(name: String): Class = System.Type.GetType(name)
val EOL = System.Environment.NewLine