I've currently been using "classname." to access methods in other classes however I read about the using static directive and thought id try it out, howeverim having a bit of an issue.
I've added the name space "using static System."class name" but its not letting me use the methods from that class specified, its just throwing an error. Can anyone help? Thankyou
I've added the name space "using static System."class name" but its not letting me use the methods from that class specified, its just throwing an error. Can anyone help? Thankyou
C#:
using System;
using System.Collections.Generic;
using System.Linq;
using static System.User; // this here is throwing an error and wont allow me to use a static Dictionary
Last edited: