-
Jun 15th, 2021, 10:53 PM
#1
Thread Starter
Fanatic Member
Regex Class library class declaration error ?
In the program to convert Vietnamese from accented to unsigned in C#, use the code in:
https://www.dtmi.net/chuyen-tieng-vi...va-sql-server/
https://docs.microsoft.com/en-us/dot...x?view=net-5.0
I declare the library using System.Text.RegularExpressions; and added the library System.Text.RegularExpressions.dll but still got the error like in the picture
-
Jun 15th, 2021, 11:31 PM
#2
Re: Regex Class library class declaration error ?
Your post is garbage, as usual. You posted a small, incomplete picture of code instead of posting code that we can copy, paste and test for ourselves. It's not obvious from the picture of the code but, based on the error messages and the indenting of the code, it appears that you have put method declarations directly in the namespace, instead of putting a type - probably a class - in the namespace and then the method(s) in that. If you'd posted the actual code then we'd be able to see for sure. The structure of the code file should look pretty much like this:
csharp Code:
using NameSpaceImportHere;
namespace NameSpaceHere
{
public class TypeHere
{
public void MethodHere()
{
// ...
}
}
}
-
Jun 16th, 2021, 10:53 PM
#3
Thread Starter
Fanatic Member
Re: Regex Class library class declaration error ?
The program is working fine, thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|