| 05.19.05
Left, Right and Mid functions in C# I started as a VB programmer and I must say that i miss using Left, Right and Mid methods since it is not included in C#. But then again, there is always a suitable replacement. The Substring method.
The Substring method retrieves a substring from a specified string. In this demo i have decided to show how to use the substring method to create the Left, Right and Mid functions. Read The Whole Article
Digging Deeper - Structures in C# Friends, want to be lucid about what structures are in C# and other various issues concerning them? This article will help you! Let’s get started!
Structures in C# are similar to structures in C and C++ but with several prominent differences. In C#, structures are value types. The memory for structure variables is allocated on stack and there is no heap allocation. Structures can have constructors, methods and properties!
The following are the possible structure modifiers: Read The Whole Article
More on Handling Basic Data Types Have you ever wanted to learn how basic types of C++ variables interact in complex situations? Ivor Horton explains this, and also describes some interesting features of C++. This article is from chapter 3 of Ivor Horton's Beginning ANSC C++ The Complete Language (Apress, 2004; ISBN 1590592271).
IN THIS CHAPTER, I expand on the types that I discussed in the previous chapter and explain how variables of the basic types interact in more complicated situations. I also introduce some new features of C++ and discuss some of the ways that these are used. Read The Whole Article
Custom Attributes in C#, Part I - Basics "C# is an imperative language, but like all imperativelanguages it does have some declarative elements. For example, the accessibility of a method in a class is specified by decorating it public,protected, internal, protected internal, or private. Through its support for attributes, C# generalizes this capability, so that programmers can invent new kinds of declarative information, attach this declarative information to various program entities, and retrieve this declarative information at run-time. Programs specify this additional declarative information by defining and using attributes." - C# Language Specification
The mechanism to invent new attributes is also referred as 'Custom Attributes'. We can use custom attributes to associate information with C# classes. Read The Whole Article |