mono pastebin

mono pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Diff mono pastebin View Help

Posted by ceronman on Fri 8th Aug 00:37 (modification of post by ceronman view diff)
diff | download | new post

  1. Index: class/System.Windows/ChangeLog
  2. ===================================================================
  3. --- class/System.Windows/ChangeLog      (revisión: 109944)
  4. +++ class/System.Windows/ChangeLog      (copia de trabajo)
  5.  -1,3 +1,7 @@
  6. +2008-08-05  Manuel Ceron  <ceronman@gmail.com>
  7. +
  8. +       * System.Windows.Markup/XmlLanguage.cs: fixed == and != overloads.
  9. +
  10.  2008-08-05  Chris Toshok  <toshok@ximian.com>
  11.  
  12.         * Makefile.am (system_windows_sources): add GeneralTransform.cs.
  13. Index: class/System.Windows/System.Windows.Markup/XmlLanguage.cs
  14. ===================================================================
  15. --- class/System.Windows/System.Windows.Markup/XmlLanguage.cs   (revisión: 109944)
  16. +++ class/System.Windows/System.Windows.Markup/XmlLanguage.cs   (copia de trabajo)
  17.  -71,12 +71,16 @@
  18.                
  19.                public static bool operator ==(XmlLanguage xmlLanguage1, XmlLanguage xmlLanguage2)
  20.                {
  21. +                     if ( object.ReferenceEquals(xmlLanguage1, null)
  22. +                            || object.ReferenceEquals(xmlLanguage2, null) )
  23. +                            return false;
  24. +
  25.                       return xmlLanguage1.IetfLanguageTag == xmlLanguage2.IetfLanguageTag;
  26.                }
  27.                
  28.                public static bool operator !=(XmlLanguage xmlLanguage1, XmlLanguage xmlLanguage2)
  29.                {
  30. -                     return xmlLanguage1.IetfLanguageTag != xmlLanguage2.IetfLanguageTag;
  31. +                     return !(xmlLanguage1 == xmlLanguage2);
  32.                }
  33.         }
  34. -}
  35. \ No newline at end of file
  36. +}

Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Use syntax highlighting

To highlight particular lines, prefix each line with @@


(sorry about this, spam sucks)



Remember my settings