c# - Must declare a body becase it is not marked abstract, extern or partial -
I created the following class, however, I can not get it before error:
It is necessary to declare a body because this essence is not marked as external or partially
The class is as follows:
Using the system ; Using System.Collections.Generic; Using System.Linq; Using System.Web; Using System.Runtime.CompilerServices; Namespace VDSORDAL {Public intangible class object compiler & lt; T & gt; : ICompair & lt; T & gt; {Public object compactor (string comparisonfield, string direction); Fixed Private String Comparison; Public string comparison movie {get {return compareField; } Set {compareField = value; }} Get Public String Directions {return {return CompareField; } Set {compareField = value;}} Public abstract integration (T x, TY); }}
Can someone point out the error in my way and also tell me what I am doing and why is throwing this error?
You must add a method body to the public object compaiper
(String comparisonfield, string direction);
I thought that you do some research in some classes. There is a good starting point, but a quick Google search will provide you with a deeper source of information.
Since the question has been answered properly, so I will add some additional comments in the form of code to you.
using System.Web; Using System.Runtime.CompilerServices;
These are a strange pair of namespaces used in a comparative (especially the other), this is a class from a large file and you have not got all this, or what It just left legacy code?
Public object compactor (string comparison field, string direction);
I'm guessing that the constructor should establish such properties?
Public object compactor (string comparisonfield, string direction) {comparisonfild = comparisonfield; Direction = direction; }
get public string direction {return {return CompareField; } Set {compareField = value;}}
I think it should have its own backing field. It seems strange that it will always be similar to the comparison field.
I do not mean to be harsh, but just behind that error, this class will not work. You really need to understand what you are trying to do and how such a class can help you in this way. (If you know all this and do not understand the error, then I apologize)
Comments
Post a Comment