Cocoa.String.ToString C# (CSharp) Méthode

ToString() public méthode

public ToString ( ) : string
Résultat string
        public override string ToString()
        {
            /// This function used to be just cal NSString's cString, however this cause some downstream
            /// character encoding issues. Especially in the Event class. The fix for this was to
            /// tell this function to encode the string using UTF-8.
            /// Todd Schavey - [email protected]
            ///
            return (string) ObjCMessaging.objc_msgSend (NativeObject, "cStringUsingEncoding:", typeof (string), typeof(int), 4 /*NSUTF8StringEncoding*/ );
        }

Usage Example

Exemple #1
0
 protected void FireEvent_WillSpeak(Range aCharacterRange, Cocoa.String aString)
 {
     if (WillSpeak != null)
     {
         WillSpeak(this, aCharacterRange, aString.ToString());
     }
 }