컴파일러 오류 CS1909
업데이트: 2007년 11월
오류 메시지
DefaultValue 특성은 'type' 형식의 매개 변수에 사용할 수 없습니다.
The DefaultValue attribute is not applicable on parameters of type 'type'
CS1909 오류는 매개 변수 형식에 사용할 수 없는 DefaultValue 특성을 사용하는 경우에 발생합니다.
예제
다음 샘플에서는 CS1909 오류가 발생하는 경우를 보여 줍니다.
// CS1909.cs
// compile with: /target:library
using System.Runtime.InteropServices;
public interface ISomeInterface
{
void Test1([DefaultParameterValue(new int[] {1, 2})] int[] arr1); // CS1909
void Test2([DefaultParameterValue("Test String")] string s); // OK
}