What is the correct naming convention for a web service in .NET?

I am creating a web service and I want to name it accordingly.

Now my service is called Service according to / App _Code / Service.cs

Should I rename it to something like: com.example.MyWebService.cs?

How to bypass a class file except for '.' in the file name?

+4
source share
2 answers

The "com.example.whatever" namespace has java specifics. Microsoft recommends using Company.Product.etc ..

Review the naming instructions at: http://msdn.microsoft.com/en-us/library/ms229002.aspx

+4
source

com.example will be a namespace, not part of the class / service name.

You should:

namespace Com.Example { public class MyWebService { // class contents } } 
0
source

Source: https://habr.com/ru/post/1277443/


All Articles