Tools, FAQ, Tutorials:
"MyLib.cs" - VC# Class and Library
How to create a VC# class and build it into a library?
✍: FYIcenter.com
If you want to create a VC# class and build it into a library,
you can follow this tutorial:
1. Create the class source code file, MyLib.cs, with a text editor:
// MyLib.cs
// Copyright (c) FYIcenter.com
using System;
namespace fyi {
public class MyLib {
public static void PrintHello() {
Console.WriteLine("Hello World! - From MyLib.");
}
}
}
2. Compile and build the static library with the "csc /target:library" command:
\fyicenter>csc /target:library MyLib.cs Microsoft (R) Visual C# Compiler version 2.2.0.61624 Copyright (C) Microsoft Corporation. All rights reserved. >dir MyLib.* 09:16 AM 234 MyLib.cs 09:17 AM 3,072 MyLib.dll
3. Distribute the library file, MyLib.dll, to others to use.
⇒ "MyLibApp.cs" - Call VC# Class from Library
⇐ VC# Command Line Compiler in Visual Studio 2017
2017-08-06, ∼3453🔥, 0💬
Popular Posts:
How To Read a File in Binary Mode in PHP? If you have a file that stores binary data, like an execut...
How To Remove Slashes on Submitted Input Values in PHP? By default, when input values are submitted ...
How to create a "Sign-up or Sign-in" user flow policy in my Azure AD B2C directory? If you want to b...
How to use the urllib.request.Request object to build more complex HTTP request? The urllib.request....
How To Copy Array Values to a List of Variables in PHP? If you want copy all values of an array to a...