ToString() публичный Метод

Returns a System.String that desrcibes this instance.
public ToString ( ) : string
Результат string
Пример #1
0
 /// \internal
 /// <summary>Makes the specified AudioContext current in the calling thread.</summary>
 /// <param name="context">The OpenTK.Audio.AudioContext to make current, or null.</param>
 /// <exception cref="ObjectDisposedException">
 /// Occurs if this function is called after the AudioContext has been disposed.
 /// </exception>
 /// <exception cref="AudioContextException">
 /// Occurs when the AudioContext could not be made current.
 /// </exception>
 static void MakeCurrent(AudioContext context)
 {
     lock (audio_context_lock)
     {
         if (!Alc.MakeContextCurrent(context != null ? context.context_handle : ContextHandle.Zero))
         {
             throw new AudioContextException(String.Format("ALC {0} error detected at {1}.",
                                                           Alc.GetError(context != null ? (IntPtr)context.context_handle : IntPtr.Zero).ToString(),
                                                           context != null ? context.ToString() : "null"));
         }
     }
 }
Пример #2
0
 /// \internal
 /// <summary>Makes the specified AudioContext current in the calling thread.</summary>
 /// <param name="context">The OpenTK.Audio.AudioContext to make current, or null.</param>
 /// <exception cref="ObjectDisposedException">
 /// Occurs if this function is called after the AudioContext has been disposed.
 /// </exception>
 /// <exception cref="AudioContextException">
 /// Occurs when the AudioContext could not be made current.
 /// </exception>
 static void MakeCurrent(AudioContext context)
 {
     lock (audio_context_lock)
     {
         if (!Alc.MakeContextCurrent(context != null ? context.context_handle : ContextHandle.Zero))
             throw new AudioContextException(String.Format("ALC {0} error detected at {1}.",
                 Alc.GetError(context != null ? (IntPtr)context.context_handle : IntPtr.Zero).ToString(),
                 context != null ? context.ToString() : "null"));
     }
 }