Working with Assemblies and Methods

  • 9 Videos | 54m 5s
  • Earns a Badge
In .NET, your code is stored in either dynamic link libraries or EXEs and the term assembly refers to both .NET DLLs and .NET EXEs. In this course, you'll learn how to call code that is stored in another assembly. You'll explore scoping and partitioning with namespaces, how to use namespaces, as well as DLL references and how to use code from a DLL. You'll examine how to store configuration settings for your program outside of the executable using the application configuration file. In this course, you'll also learn about static methods and parameters. You'll explore how to write and call methods, an example of a static method, and how to add a static method to a program. Next, you'll examine the basics of method parameters and return values, as well as named and optional parameters. You'll also learn about overloading methods, basic control flow, looping, and how to return a value from a method. This course was originally created by Global Knowledge (GK). 

WHAT YOU WILL LEARN

  • recognize the purpose of namespaces and how they are used for scoping and partitioning
    recognize namespace concepts like declaration, nesting, members, and aliases
    recognize how DLL references tell Visual Studio how to put together multiple library (DLL) files when you build an executable
    describe how you can reference code that is in an entirely different library
    recognize how you can store configuration settings for your program outside of the executable using the application configuration file
  • recognize the benefits of breaking large amounts of code into smaller modules like methods
    recognize how to pass data values into a method using parameters
    recognize how C# parameter values are accepted into a method and how parameter initializers are used to mark parameters as optional
    recognize benefits and uses of optional parameters and the role of default values

IN THIS COURSE

  • Playable
    1. 
    Scoping and Partitioning with Namespaces
    5m 37s
    UP NEXT
  • Playable
    2. 
    Reviewing Namespaces
    5m 55s
  • Locked
    3. 
    What Are DLL References?
    3m 27s
  • Locked
    4. 
    Using DLL References
    6m 39s
  • Locked
    5. 
    The app.config File
    7m 20s
  • Locked
    6. 
    Modularizing Code
    4m 49s
  • Locked
    7. 
    Working with Parameters
    7m 5s
  • Locked
    8. 
    Parameter Values and Optional Parameters
    6m 40s
  • Locked
    9. 
    Using Optional and Default Parameters
    6m 33s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.