Bug 745 - First character of file name is being converted into Underscore (_) when first character is a number.
Summary: First character of file name is being converted into Underscore (_) when firs...
Status: CLOSED FEATURE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 2.6
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-09-11 09:11 UTC by Nischal
Modified: 2011-12-22 11:31 UTC (History)
2 users (show)

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


Attachments
Creating a file with file name starting with number (159.08 KB, image/jpeg)
2011-09-11 09:11 UTC, Nischal
Details
Filename with Underscore (119.06 KB, image/jpeg)
2011-09-11 09:13 UTC, Nischal
Details


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:
Status:
CLOSED FEATURE

Description Nischal 2011-09-11 09:11:55 UTC
Created attachment 320 [details]
Creating a file with file name starting with number

Steps to reproduce:

1. Open MonoDevelop.
2. In MonoDevelop Welcome screen, expand "File" menu at the menu bar.
3. Click on "File" option under "New" dropdown menu.
4. Select "Mono for Anoroid" option under C#.
5. Select "Class" option and enter name start with the number.
6. Click on "New" button.
7. See new file created which first character automatically converted into the underscore.

Actual Result: First character of filename automatically converted into the underscore if the file name starts with number.
Refer to the attached screenshot.

Expected Result: First character of filename should not get converted into the underscore if start with number.

Environment:
Windows 7 (32 bit)
Windows XP (32 bit)
Comment 1 Nischal 2011-09-11 09:13:47 UTC
Created attachment 321 [details]
Filename with Underscore
Comment 2 Marek Habersack 2011-09-12 09:05:03 UTC
-> MonoDevelop
Comment 3 Mikayla Hutchinson [MSFT] 2011-09-12 09:27:59 UTC
As designed, C# class names can't begin with a number.
Comment 4 Nischal 2011-12-22 11:30:54 UTC
As per the comment.closing this issue.