System.ThrowHelper.ThrowArgumentException_DestinationTooShort C# (CSharp) Méthode

ThrowArgumentException_DestinationTooShort() static private méthode

static private ThrowArgumentException_DestinationTooShort ( ) : void
Résultat void
        internal static void ThrowArgumentException_DestinationTooShort() { throw CreateArgumentException_DestinationTooShort(); }
        [MethodImpl(MethodImplOptions.NoInlining)]

Usage Example

Exemple #1
0
 /// <summary>
 /// Copies the contents of this read-only span into destination span. If the source
 /// and destinations overlap, this method behaves as if the original values in
 /// a temporary location before the destination is overwritten.
 ///
 /// <param name="destination">The span to copy items into.</param>
 /// <exception cref="System.ArgumentException">
 /// Thrown when the destination Span is shorter than the source Span.
 /// </exception>
 /// </summary>
 public void CopyTo(Span <T> destination)
 {
     if (!TryCopyTo(destination))
     {
         ThrowHelper.ThrowArgumentException_DestinationTooShort();
     }
 }
All Usage Examples Of System.ThrowHelper::ThrowArgumentException_DestinationTooShort