Merge pull request #1179 from ludovic-henry/pr25-threadpool
[mono.git] / mcs / class / corlib / System.Text / UTF32Encoding.cs
index 9e97f6aefab42b81c3f2a581748b5db47d4d2b56..16413e8ad578a703c747aabed5bd206b6c0e0c2c 100644 (file)
@@ -314,9 +314,9 @@ public sealed class UTF32Encoding : Encoding
                                preamble[1] = (byte)0xFE;
                        }
                        return preamble;
-               } else {
-                       return new byte [0];
                }
+               
+               return EmptyArray<byte>.Value;
        }
 
        // Determine if this object is equal to another.