Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8973319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:25:07+00:00 2026-06-15T18:25:07+00:00

AFAIK: Adding an optional parameter to a public method that’s called from another assembly

  • 0

AFAIK:

Adding an optional parameter to a public method that’s called from
another assembly requires recompilation of both assemblies— just as
though the parameter were mandatory.

I was wondering about WebService in this context.

What about me – using an added optional param webservice method?

for example :

lets say Google’s webservice method was :

void DoWork(int a , int b)

and it was changed to

void DoWork(int a , int b  , isDefault=false)
  • must I , as a consumer need to recreate the proxy file ?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:25:08+00:00Added an answer on June 15, 2026 at 6:25 pm

    My understanding is that optional parameters are syntactic sugar.

    You still end up with an overload that takes all parameters as mandatory, however the compiler will automatically insert the default for the optional parameter into the call site in the IL when it encounters a method call without the optional parameter specified.

    How this affects Web Services depends on how the optional parameter is propagated through the proxy.

    If it is a non-breaking change to the WSDL, then my guess is that it won’t make a difference, where you won’t need to regenerate the proxy, and the requests generated by the existing proxy will still be valid from a WSDL contract point of view.

    However, if it is a breaking change to the WSDL, then you would obviously need to regenerate the proxy, and any call sites into proxy methods would need to be recompiled.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is about the public key that every .NET assembly has AFAIK (looking
AFAIK, It's agreed that accessing virtual members from constructor is a dangerous practice. Can
AFAIK you can load one DataSet from another DataSet via IDataReader i.e. new DataSet().Load(existingDataSet.CreateDataReader());
AFAIK Amazon AWS offers so-called regions and availability zones to mitigate risks of partial
AFAIK with XmlHttpRequest I can download and upload data just with the send method.
AFAIK, F# Map and set are implemented as red-black trees, so I guess that
AFAIK, there are two ways of passing data to the view from controller :
AFAIK, all types are derived from System.Object class. Considering this, how can I calculate
I have an application that uses plugins. The assembly chain looks like this: App
I am transferring a message from one emulator instance on a machine to another

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.