Software:M Sharp: Difference between revisions

From HandWiki
(import)
 
No edit summary
 
Line 1: Line 1:
{{Short description|Code generation tool}}
{{Short description|Code generation tool}}
<!-- Please do not remove or change this AfD message until the discussion has been closed. -->
{{Article for deletion/dated|page=M Sharp|timestamp=20250227215612|year=2025|month=February|day=27|substed=yes|help=off}}
<!-- Once discussion is closed, please place on talk page: {{Old AfD multi|page=M Sharp|date=27 February 2025|result='''keep'''}} -->
<!-- End of AfD message, feel free to edit beyond this point -->
{{Use British (Oxford) English|date=December 2011}}
{{Correct title|title=M#}}
{{about|the code generation tool for Microsoft C#|other programming languages named M|M (disambiguation)}}


{{Infobox programming language
{{Infobox programming language

Latest revision as of 07:58, 28 February 2025

Short description: Code generation tool


M#
File:205px
Paradigmmulti-paradigm: structured, object-oriented, event-driven, procedural, meta
Designed byGeeks ltd.
DeveloperGeeks ltd.
First appeared2012
Typing disciplinestatic, dynamic
Licenseproprietary
Websitehttp://www.msharp.co.uk/
Major implementations
Visual C#, .NET Framework, ASP.NET, Domain-specific language

M# (pronounced em sharp) is a code generation tool and a domain-specific language that can be used to create websites and web applications.[1] It can translate entities and page definitions to ASP.NET Web Forms and MVC and C# code which in turn form the user interface and business logic layer of the application. Its main goals are to reduce time of development, increase code quality, and reduce human errors.[2]

Name

M# generates codes that is mainly in the C# programming language. Because the "sharp" suffix has been used by a number of other .NET languages, M# followed the same convention.[3]

Syntax

M# uses its own IDE, which is a web-based application for creating ASP.Net WebForms and Visual Studio for Creating ASP.Net MVC projects. Inside the IDE, a user can type, select from suggestions (Intelli-sense), or use the mouse to define the entities or user interface modules.[4] An example would be a form module that has two buttons (Cancel and Save) and displays a Key and a Text field. The Key field is read-only and the Save button adds a content block to the database:

A form module

And the same form in the Visual Studio would be like the following:
576x576px

Internally, M# IDE keeps this module definition as a JSON file. At the time of a build, it will generate C#, ascx, and ascx.cs files. From that moment, XML or M# is not necessary to render the module or to be installed on the machines that will serve the page.

New versions of M# are integrated with Microsoft Visual Studio.

References

External links