Tags » C#

Back to the basics...

While watching this course from K. Scott Allen I’ve re-learned some things about Object Oriented Programming, namely this ..

If you have a class…

public class GradeBook
{
    public List<int> ListOfNumbers { get; set; }

    public int ReturnLowest()
    {
        int lowest = int.MaxValue;

        foreach (int number in ListOfNumbers)
        {
            lowest = Math.Min(lowest, number);
        }

        return lowest;
    }
}
… 280 more words
C#

紫春花 - 港油麻藤 a violet spring flower - hong kong mucuna (mucuna championii)

三月中一個週日,在鹿頸附近遊走,偶遇港油麻藤,非常美的紫春花。

港油麻藤與俗稱禾雀花的白花油麻藤是近親,同屬黧豆屬,而前者因首次在香港發現,所以以港命名,又稱香港黧豆。

此攀藤植物花冠蝶形,紫色花朵成總狀花序。卵形三小葉形成羽狀複葉序。果披銹色硬毛,腹背有翅。比起白花禾雀花,紫色的似乎較少見。這次難得機會在野外碰到,對鮮花驚艷,旁邊已枯老的烏紫色調和變化了的質感,也像老了的酒,饒有味道。

it was a great surprise spotting this beautiful native species during a hike around luk keng in mid march. the dark violet is so gracious. 132 more words

Plant 植物

Membuat 1 Solution dengan Multi Projects pada C#

Sebagai programmer C#, beberapa dari kita pasti pernah membuat program besar ataupun kecil. Saat kita membuat program kecil (bagaimana kalau kita menyebutnya tool) untuk membantu kinerja rekan-rekan kerja kita, pasti tanpa sadar kita sudah membuat banyak tool yang tersebar di kantor (entah ada yang digunakan maupun tidak). 580 more words

Information Technology

SLINGSHOT (A Prototype game in Unity3D)

So this is a prototype game I made in Unity based on the blog I wrote

The Science of “The Martian”

Science

Introduction to ASP.NET Core part 27: showing the user status and logging out

Introduction

In the previous post we looked at the basics of authorisation and the log in process in .NET Core. The Authorization attribute which can be used for controllers and action methods helps us introduce a basic form of restrictions. 962 more words

.NET

Reminders

Every morning I wake up and look at a prayer card for St. Francis. I was at my home group one night, and about five minutes into the meeting I spotted two women looking a little lost in the hallway (aren’t we all a little lost in the “hallway?”). 209 more words

Recovery

164. Write a program to initialize the member variable in different ways using constructor?

#include<iostream.h>
#include<conio.h>
class demo
{
                int a,b;
public:
                demo(int y,int z)
                                {
                                a=y;
                                b=z;
                                display();
                                }
private:
                void display()
                                {
                                cout<<"A = "<<a<<endl;
                                cout<<"B = "<<b<<endl;
                                }
};
void main()
{
                clrscr();
                demo d(10,20);
                getch();
}
C++