project or an exe project. Now, let's start some practical work.
- Start Visual Studio 2005
- Choose a new C# project [File -> New Project]
- From template pane choose Class Library Template
- Set the Location : F:\myWrittings\CSharpBook\Source Codes\
- Name : privateAssembly
- In Solution explorer change class name from Class1 to mathclass
- Now right click on mathclass and click on view code
- Change the name of namespace from privateAssembly to CSharp.AStepAhead.privateAssemby
- After writing codes of the assembly, now you have to provide some information to
your assembly as follows:
Check full code of private
assembly.
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; // General Information about an assembly is
controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("privateAssembly")]
[assembly: AssemblyDescription("This is an Example of Book: C#-A Step Ahead
Series")]
[assembly: AssemblyConfiguration("Free I.T. Education Series - A Step Ahead")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("A Step Ahead Series")]
[assembly: AssemblyCopyright("Copyright © A Step Ahead 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("d5389a36-3aa1-4e22-b3df-4cacd5e96531")]
and company who had developed it.
No comments:
Post a Comment