Xamarin Mac | Table O Contents

Place the introducing line of text ie.) the ‘lead’ here …

Note. The Flammarion Logo Badge in the page header above is an .svg image file set to the dimensions of 5% width, auto height, and zoom. Go ahead and test the zoom-out feature by hovering over the badge to engage the expansion of the image.

X-code

If you are an Apple Mac Book Pro owner - developer, you already have a copy of Apple X-code on your machine.

We will be using specifically, the X-code Interface Builder when interfacing with Visual Studio for Mac.

Begin

There are a total of seven (7) files to consider at the onset of a basic X-code - Xamarin app.

Four C Sharp

The first four (4) files are C Sharp # language files (.cs)

Main dot cs

As in all C Sharp # language programs, the Main dot cs file houses the intro method that kicks off the program, as follows:


static void Main(string[] args)

Here, the method creates an instance of the Main class.

The Main Class

The MainClass describes a Xamarin Mac app in object oriented detail and is a blueprint for the declaration and assignment of both assets and methods in an instance of the class.

Imported Libraries

The program recognizes the AppKit declared as a library of functionality to be used and imported into the application via the using statement at the top of the program.

Name Spaces

The namespace is derived from the original name given the app, in this case hello-mac.

After importing the library of functionality AppKit into the program via the using statement …

And, then declaring the namespace of hellomac

The program next creates an instance of the MainClass, as follows:


using AppKit;

namespace hellomac
{
    static class MainClass
    {
        static void Main(string[] args)
        {
            NSApplication.Init();
            NSApplication.Main(args);
        }
    }
}


Last Subtitle

More to come …


Note. The above synopsis was derived from an article written by Blank Author [1].

  1. A Narrative of Psychology by Blank Author, Jan #1999

Support

Please support the co-workers who aggregate the Source Links for our projects.

Patreon

Like what you see in this project? If so, then support the authors and machine-elves who aggregate the source links and pages for our projects via Patreon.