473,394 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

C# Add more Methods to a Class which Called from a DLL

35
Hi There,,, How Can I Add more Methods to a Class (The Class Called from a DLL file which referenced to project in C#) ???

DLL Created in C# And i want to Use it in C# too

Thanks
Jun 18 '07 #1
2 1926
dip_developer
648 Expert 512MB
Hi There,,, How Can I Add more Methods to a Class (The Class Called from a DLL file which referenced to project in C#) ???

DLL Created in C# And i want to Use it in C# too

Thanks
what do u actually want??....You cant add a module to a alrady compiled .dll...If you want more functionality from your dll then you have to change the structure and compile the dll again as a new project.
Jun 19 '07 #2
DAnDA
35
Look, i have modify a created project by chris hambelton,,,theres a DLL file by the name CIF.Business.Northwind contain some Class, like this:

using System;

namespace CIF.Business.Northwind
{
[Serializable]
public class OrdersItem : BusinessItemBase
{
public OrdersItem();

public virtual string CustomerID { get; set; }
public virtual int EmployeeID { get; set; }
public virtual double Freight { get; set; }
--------------------------------------------------------------------------
***Now i want to add a new Parameter to OrdersItem Class in project, Like this:

public virtual string Postalcode { get; set; }

i write these codes:

namespace CIF.Business.Northwind
{
[Serializable]
public class OrdersItem : BusinessItemBase
{
private string _Postalcode;

public OrdersItem() { }

public string Postalcode
{
get { return _Postalcode; }
set { _Postalcode = value; }
}

}

But i Got Errors:

'CIF.Business.Northwind.OrdersItem' does not contain a definition for 'CustomerID'
'CIF.Business.Northwind.OrdersItem' does not contain a definition for 'EmployeeID'

Whats wrong ?!


Really Thanks For Care
Jun 19 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

99
by: David MacQuigg | last post by:
I'm not getting any feedback on the most important benefit in my proposed "Ideas for Python 3" thread - the unification of methods and functions. Perhaps it was buried among too many other less...
18
by: John M. Gabriele | last post by:
I've done some C++ and Java in the past, and have recently learned a fair amount of Python. One thing I still really don't get though is the difference between class methods and instance methods. I...
3
by: Steven D'Aprano | last post by:
I've been doing a lot of reading about static methods in Python, and I'm not exactly sure what they are useful for or why they were introduced. Here is a typical description of them, this one...
32
by: Adrian Herscu | last post by:
Hi all, In which circumstances it is appropriate to declare methods as non-virtual? Thanx, Adrian.
4
by: ORi | last post by:
Hi all ! There's a question I've been bothering for a while: I'm actually developing architectural frameworks for application developing and I think virtual methods, although needed because of...
2
by: Pavils Jurjans | last post by:
Hello, I wanted to get some feedback on why there are not allowed virtual static members in C#. Say, I have the Parent class, that hosts number of protected methods, that occasionaly make...
4
by: John C | last post by:
I'm new to C#, so just point me at the correct reference material if this question has been answered before. When creating a new class which implements the IDictionary interface, two versions of...
5
by: Diffident | last post by:
Hello All, I am designing a class based on singleton pattern. Inside this class I have multiple instance methods. My question is since there will be only one instance of this class at any...
3
by: rickeringill | last post by:
Hi comp.lang.javascript, I'm throwing this in for discussion. First up I don't claim to be any sort of authority on the ecmascript language spec - in fact I'm a relative newb to these more...
4
by: Stefan Nikolaus | last post by:
Hello, I've run into problems with defining a template, which inherits from a base template and the usage of virtual methods in those. I want to initialize a member variable depending on which...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.