Bug 23932 - NSString.Empty syntax sugar
Summary: NSString.Empty syntax sugar
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: master
Hardware: PC Mac OS
: --- enhancement
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2014-10-20 08:23 UTC by David Karlaš
Modified: 2014-10-22 17:23 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description David Karlaš 2014-10-20 08:23:04 UTC
Sometimes user has to return empty NSString or pass as parameter...
Atm he has to type:"return new NSString("")" or "return new NSString(string.Empty)".
I think it would be nicer to have NSString.Empty which is in my opinion more useful then string.Empty.

This should also be added to Xamarin.Mac in case this code is not shared between iOS and Mac.
Comment 1 Alex Soto [MSFT] 2014-10-22 17:23:18 UTC
Fixed in monotouch master 28633af525ca21bc639cd5998bf51444dddc9334

@QA added a test to it.