I’m just starting out learning C# this may be really simple but in VB i have these namespaces
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Globalization" %>
<%@ import Namespace="System.Data.SqlClient" %>
How do I go about using those namespaces in C#?
I tried
namespace System.Data
and
using System.Data
but they didn’t work
Are you trying to import namespaces into an Asp.net page? If so the code you listed with a case change will work fine.
If you’re trying to import them into an actual .cs file then you need the “using” directive