0 votes
28 views
I have a webservice with a class added in project.

How to use the variables / string values from the newly created class ?
asked Mar 23, 2016 in Computer Science - IT by slow_learner (1,492 points) | 28 views

1 Answer

+1 vote
Best answer

Make sure class is accessible publicly : 

 public static  class className

Declare the string as below :

public static string nameVariable

Now you can use the variable as :

className.nameVariable
answered Mar 23, 2016 by slow_learner (1,492 points)