To add a reference to a service in the current solution. In Solution Explorer, right-click the name of the project that you want to add the service to, and then click Add Service Reference. The Add Service Reference dialog box appears.Click Discover. All WCF services in the current solution are added to the Service list. In the Service list, expand the node for the service that you want to use and select a service contract. In the Namespace box, enter the namespace that you want to use for the reference.he Add Service Reference dialog box appears. Click Discover. All WCF services in the current solution are added to the Service list. In the Service list, expand the node for the service that you want to use and select a service contract. In the Namespace box, enter the namespace that you want to use for the reference.
Void functions are created and used just like value-returning functions except they do not return a value after the function executes. In lieu of a data type, void functions use the keyword void.. A void function performs a task, and then control returns back to the caller--but, it does not return a value. You may or may not use the return statement, as there is no return value.
Anonymous function. In computer programming, an anonymous function (function literal, lambda abstraction) is a function definition that is not bound to an identifier. Anonymous functions are often: arguments being passed to higher-order functions, or used for constructing the result of a higher-order function that needs to return a function.