Interviews - C# Corner

Siddhartha Sharma
Can we overload a method in WCF?
By Siddhartha Sharma in WCF on Apr 28 2019
  • Siddhartha Sharma
    Apr, 2019 28

    Yes, using Name Attribute we can overload the method. eg [OperationContract] [Name="Add"] Public void Add(){}[OperationContract] [Name="AddNum"] Public void Add(int i){}

    • 1
  • Siddhartha Sharma
    Jun, 2019 5

    Yes with Name property. Please try

    • 0
  • Shivani
    Jun, 2019 4

    No as WCF does not support method overloading

    • 0

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS