Skip to main content

Posts

What are C# Virtual and Non-Virtual Method

  C# Virtual and Non-Virtual Method In Microsoft.net C# Virtual method supports polymorphism, which is part of the OOP Concept. We would combined virtual and override keyword with the virtual keyword on the parent/base class and then use the override keyword on the method in the child/derive class and both methods are virtual. Any methods which do not have virtual or override keyword or that have new keyword are non-virtual method. When a virtual method is invoked on an object, the run-time type of the object is used to determine which implementation of the method to use. When a non-virtual method is invoked on an object the compile-time type of object is used to determine which implementation of the method to use.

What are C# Comments and how to use them in our code

  C# Comments Overview C# Comments are only for you to read, not for the computer to execute. All the comments displayed in the Code Editor are green by default, which makes it easy to identify those lines, and the C# compiler ignores those parts when it runs your program. Single-line Comments You can make any line into the single-line comment by starting it with the two forward slash marks //, indicating the remainder of the line is a comment. Example End of line comments The End of line comments is generally used to describe variables and data types. Example Multiline Comments (delimited comments) Multiline Comments begin with an open comment mark /* and end with a lost comment mark */. All the text between the delimiters is ignored by the compiler. Example Code Example Code(Header Comments) XML Comments In C# we use XML comment on our methods by simply typing /// to get the XML comment.

Ziggy Rafiq Blog Overview

Ziggy Rafiq Blog Overview As a Full Stack Designer, Developer, Tester, and DevOps with over 18 years plus of experience, Ziggy Rafiq has also led teams as a Technical Lead Developer for over 13 years. Ziggy Rafiq’s blog will provide many tips and useful information about Full Stack Design, Development, and Testing, catering to both new professionals and those interested in exploring the field. In Ziggy Rafiq’s blog posts, Ziggy Rafiq will share his journey as a Full Stack designer, developer, and tester and how Ziggy Rafiq stays current with industry changes and best practices. You'll also find code samples from Ziggy Rafiq demo projects and best practices for designing, developing, and testing. Ziggy Rafiq will also discuss the steps necessary to obtain ISO 9001 certification for software organizations. Throughout Ziggy Rafiq’s blog, you will find useful hybrid design and development information, design samples, code samples, and how-tos. Additionally, Ziggy Rafiq will talk about