版本:Unity5.3.2 + visual studio community 2015
Unhandled Exception: System.ArgumentException: Arg_InsufficientSpace
Parameter name: chars
at System.Text.UTF8Encoding.InternalGetChars (System.Byte* bytes, Int32
byteCount, System.Char* chars, Int32 charCount, System.UInt32&
leftOverBits, System.UInt32& leftOverCount, System.Object provider,
System.Text.DecoderFallbackBuffer& fallbackBuffer,
System.Byte[]& bufferArg, Boolean flush) [0x00000] in <filename
unknown>:0
at System.Text.UTF8Encoding.InternalGetChars
(System.Byte[] bytes, Int32 byteIndex, Int32 byteCount, System.Char[]
chars, Int32 charIndex, System.UInt32& leftOverBits,
System.UInt32& leftOverCount, System.Object provider,
System.Text.DecoderFallbackBuffer& fallbackBuffer,
System.Byte[]& bufferArg, Boolean flush) [0x00000] in <filename
unknown>:0
at System.Text.UTF8Encoding+UTF8Decoder.GetChars
(System.Byte[] bytes, Int32 byteIndex, Int32 byteCount, System.Char[]
chars, Int32 charIndex) [0x00000] in <filename unknown>:0
at System.IO.StreamReader.ReadBuffer () [0x00000] in <filename unknown>:0
at System.IO.StreamReader.Read (System.Char[] buffer, Int32 index, Int32 count) [0x00000] in <filename unknown>:0
at Mono.CSharp.SeekableStreamReader.ReadBuffer () [0x00000] in <filename unknown>:0
at Mono.CSharp.SeekableStreamReader.Read () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Parse (Mono.CSharp.CompilationUnit file) [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Parse () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
問題原因
註解格式解析問題,
當參數說明中的首行為空且次行起始字為1個半形文字+中文.
狀況範例
/// <summary>
/// 註解內文
/// </summary>
/// <param name="參數1">
/// 參數說明</param>
沒有留言:
張貼留言