Vamsi Krishna
Can we have a private method in webservices ?
By Vamsi Krishna in Web Services on Oct 07 2015
  • Vishal Jadav
    Aug, 2016 8

    Yes we can have private methods in web service but we can access then in service.

    • 0
  • Vamsi Krishna
    Oct, 2015 7

    Yes you can have a private method in webservices but you will use it only within webservice's class,you will not be able to call it from outside the webservice at allExample: [WebMethod] public static string WebMethod(string postCode) { // My webmethod code string str = Add(2,5); }private static string Add(int a, int b) { // My private method code }

    • 0

Most Popular Job Functions