Some Concepts of C# Development

Overview – An Interesting Framework C# is an OOP programming language, which is developed by Microsoft.  It can be a bit boring if we just talk about the language itself.  When I started learning to program, I always asked myself what I can do with this language or Framework.   With the Framework, it begins with a general…

有时候我还会突然想起你

已经分开了很久,但是不经意间还是回想起… 8月的一个雨夜,我开车走过Armdale购物中心的停车场;我看到了你在车里坐着,你没有看见我,我没有迟疑,直接开车离开了那里… 我记得你搬走那天,当你搬走后,你发了短信给我,回到家后看到空空的房间,那晚是我一生中度过的最长的一夜… 今天和朋友聊起你,我告诉了他们,我选择了原谅。原谅对我自己也是一种解脱,这是很久以前父亲告诉我的话。谢谢你对我的伤害,让我变得更加坚强。 不知道你的处境如何?也许比以前好,也许不如以前好,但愿一切随你所愿… 《美丽的错误》 我打江南走过 那等在季节里的容颜如莲花的开落 东风不来,三月的柳絮不飞 你的心如小小的寂寞的城 恰若青石的街道向晚 跫音不响,三月的春帷不揭 你的心是小小的窗扉紧掩 我达达的马蹄是美丽的错误 我不是归人,是个过客……

Activity Diagram in UML

In UML, Activity Diagram is used for workflow and process modelling, which can capture paralleled behaviour and multiple behaviours. Key Element Start and Nodes Actions Flows Fork & Joint Decision & Merge Basic Diagram There are five actions in the above diagram, one Start, one Finish and one Merge. As we can see, the diagram…

Keyword: Static in C#

In C#, static means something cannot be instantiated in our development. In other words, we cannot create an object of a static class, and we access the static members without instantiating an object of a static class. Static Class Apply the static modifier before the class name and after the access modifier (public and private)…

Keyword: Internal & Public, Abstract & Sealed

Internal & Public In C#, once we defined a class and we can instantiate it anywhere else in our project that has access to the definition. By default, classes are declared as internal. With internal, it means the class is only accessible to the code in our current project. On contrast, keyword public allows classes…

Inheritance & Polymorphism in C#

Inheritance and Polymorphism are essential features of C#, and We encounter these features daily. It can be a bit difficult to familiar with these features. In this post, we will explore these two features, have fun. Inheritance Inheritance enables any class (Subclass) inherits from another (Parent-Class), which means Subclass will have all the members of…

UML Model – Case Diagram

In UML (Unified Modeling Language), a case diagram can summarise the details of the system users (actors) and their interactions with the system or other users (actors). In other words, the case diagram captures a high-level functionality of a system using notations for users (actors), use cases and relationship among them. Usually, the system architect…

Releasing Resource & The Syntax Candy

In C# practice, we may need to read or retrieve information from a text file; such as .text, .pdf and etc. It is a good practice of critical thinking in this scenario, what if other objects or classes need to read this file?The solution can be simple, and we can close the file or source…

Write() and WriteLine() in C#

I have been following some tutorial of C# and encountered an issue of Write() and WriteLine() function. What is the difference between them? They both print text on the console, but they operate differently based on new line character. Write() display the text without providing a new line character; whereas WriteLine() provides us with a…

Class Constructor in C#

Introduction Class Constructor is a particular method which is invoked automatically at the time of object creation.  Besides, Class Constructor does not return anything. In C#, a class can have multiple class constructors. Function of Class Constructor Set default value of a class’ properties The Initialisation, which initialises the data members (properties) of the new objects…