Posts

Showing posts from October, 2015

Featured Post

Smart Product designer

Image
download and purchase link: https://alkanyx.com/item/49/Smart+Product+designer

Live preview : http://smartproductdesigner.000webhostapp.com/

Smart Product Designer is a  tool to create your own product and get directly from your website. It is well documented, very easy to customize and use. It is build using most advance technologies including javascript, jQuery and html5.
Features Choose different product from collectionAdd custom texts to product.Change text colorChange the size and font of the TextLet the user drag, move or remove elementsAdd images to product selected from art gallery or browse it from systemDesign both frontside and back-sideShows preview while designingDownload designVery easy to customize and useHere is the purchase link : https://alkanyx.com/item/49/Smart+Product+designer

Calling another case from one case in Switch statement using C#

Sometimes it might be possible that we need to call some another case of switch statement after some processing in one case. In that case we can use either falling through switch cases or goto case statement.

Here is the example of falling through -

Falling through switch-cases can be achieved by having no code in  case (see case 0 and 1):
switch (/*...*/) {
    case 0: // shares the exact same code as case 2
    case 1:// shares the exact same code as case 2
    case 2:
        // do something else
        break;
    default:
        // do something entirely different
        break;}

Both case 0 and 1 will execute code of case 2.


Using special goto case in switch statement -
 switch (/*...*/) {
    case 0:
        //do something
        break;

    case 1:
       //do something
       break;

    case 2:
        if(condition1)
            goto case 1;
        else
            goto case 2;

        break;
    default:
        // do something entirely different
        break;}

Here in the …