System.ThrowHelper.ThrowArrayTypeMismatchException_ArrayTypeMustBeExactMatch C# (CSharp) 메소드

ThrowArrayTypeMismatchException_ArrayTypeMustBeExactMatch() 정적인 개인적인 메소드

static private ThrowArrayTypeMismatchException_ArrayTypeMustBeExactMatch ( Type type ) : void
type Type
리턴 void
        internal static void ThrowArrayTypeMismatchException_ArrayTypeMustBeExactMatch(Type type) { throw CreateArrayTypeMismatchException_ArrayTypeMustBeExactMatch(type); }
        [MethodImpl(MethodImplOptions.NoInlining)]

Usage Example

예제 #1
0
파일: Span.cs 프로젝트: zhiliangxu/corefx
        public Span(T[] array)
        {
            if (array == null)
            {
                ThrowHelper.ThrowArgumentNullException(ExceptionArgument.array);
            }
            if (default(T) == null && array.GetType() != typeof(T[]))
            {
                ThrowHelper.ThrowArrayTypeMismatchException_ArrayTypeMustBeExactMatch(typeof(T));
            }

            _length     = array.Length;
            _pinnable   = Unsafe.As <Pinnable <T> >(array);
            _byteOffset = SpanHelpers.PerTypeValues <T> .ArrayAdjustment;
        }
All Usage Examples Of System.ThrowHelper::ThrowArrayTypeMismatchException_ArrayTypeMustBeExactMatch