Name

RankException

Synopsis

This exception signals an attempt to send an array of the wrong rank to a method. For example, this exception is thrown when you pass a multidimensional array to Array.Sort( ) or Array.Reverse( ).

public class RankException : SystemException {
// Public Constructors
   public RankException( );
   public RankException(string message);
   public RankException(string message, Exception innerException);
// Protected Constructors
   protected RankException(System.Runtime.Serialization.SerializationInfo info,
        System.Runtime.Serialization. StreamingContext context);
}

Hierarchy

Object Exception(System.Runtime.Serialization.ISerializable) SystemException RankException

Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.