|
Is possible in WCF service: method return IList when object can be Person class?
Ex: in IServiceContract.cs
[ServiceContract] public interface IDAS { [OperationContract] void DoWork(); [OperationContract] List<object> GetAnyClass(); }
And class:...
Started by Cheva on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
[OperationContract] [KnownType(typeof(Person] IList<Person> GetPeople(); [OperationContract....
Theoretically yes, although you need to tell the service that it might be expecting a Person object using the KnownTypeAttribute on your method.
|
|
I'm building my personal CMS and need your advice organizing core functions and classes. I have folders:
/shared /classes DB.php Session.php Config.php ... /libraries Arrays.php DateTime.php Email.php ...
The files in 'classes' folder contains core classes...
Started by Mark Tyler on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Should i just write them as functions, or make them static and wrap in some class? Basically i need.
|
|
I'm now using NetBeans as my IDE-of-choice, and it has a plugin for UML modeling. In the class diagram, there are model elements known as "Boundary Class", "Control Class", and "Entity Class". However, I can't find a good definition of them, but I did...
Started by Thomas Owens on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Boundary classes are ones at the boundary business entities like "person" and "bank account"
control classes implement some business logic.
These are class stereotypes used in analysis.
|
Ask your Facebook Friends
|
Apologies if this was already asked but, I have had a look and can't find anything. I am trying to work out the best way to model the following in C#. I have sketched out a few idea but none of them feel right.
I have created an abstract 'Person' class...
Started by Skittles on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
That it is both 'flexible' and 'accurate'
public class Parties { Person Person {get; set {} public class Business : Organization {} public class Contact: Person { public string FirstName{getYour problem is your....
|
What is the difference between business class and domain class? What is meant by persistent classes?
What is the difference between business class and domain class? What is meant by persistent classes?
Started by sevugarajan on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
It can be the same as the domain ....
A business class is one that your application works with.
A database) to an in-memory object.
It is typically used to map data from your data store (e.g .
A "domain" class is one that models your data.
|
|
In a book, it says
the class Name has the property of last name and first name.
Address inherits from Name, and has additional property of street number, street name, city, state, zipcode.
That seems different from the other cases, where
Cat inherits ...
Started by Jian Lin on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
But for cases when indeed every entity of Address class also has the same properties as Name class inheritance is....
Be perhaps more elegant to have a composite class Person that has member variables of types Name and Address.
|
|
Class Bob extends Person { //do some stuff } class Person { public function __construct() { //get the class name of the class that is extending this one //should be Bob } }
How can I get the class name of Bob from inside the constructor of the Person ...
Started by Andrew on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
My name is ".__CLASS__.", and I have....
Lt;?php class Bob extends Person { public function __construct() { parent::__construct(); } public($this) , ".\n"; } } class Person { public function __construct() { echo "Hello.
|
|
Hello, If i have the following code example:
public class ClassBass { public int ID { get; set; } public string Name { get; set; } } public class ClassA : ClassBass { public int JustNumber { get; set; } public ClassA() { this.ID = 0; this.Name = string...
Started by Pr0fess0rX on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Your class....
What you're around.
You could change the implementation to throw an exception when the property inherit a base class if you're implementing all of the functionality of that base class.
And properties of the base class.
|
|
You know, because no one actually pays attention to the teacher....
I have an Electronics (with an emphasis on robotics) class every day. Pretty simple course really, you self-study and when you're ready for a test you tell the teacher and he gives it...
Started by Cal on
, 24 posts
by 23 people.
Answer Snippets (Read the full thread at anime-forums):
The instructor would talk about....
In a good book, but other then that, I'd get pissed if others in the class would be talking or fooling just check forums on my phone I had a Cultural Geography class in college that was completely useless.
|
|
I mainly play by myself due to my work schedule. I work night shift so on my days off I am up all night while my friends are sleeping. I don't want to wait a half an hour to be able to do something. I think a class that is good at tanking would alleviate...
Answer Snippets (Read the full thread at battle):
You also get solo just fine, but you'll do a lot better if you enjoy the class and learn how to play it really well or not you like the class....
You can dual spec, you get both a powerful spellcaster and a very powerful melee class.
|