« first day (3108 days earlier)      last day (1823 days later) » 

12:07 PM
If I want to call a method from my abstract class, inside the class that inherits that abstract class, how can I do that?
Is this what delegates are usually used for?
 
Nox
12:20 PM
no
if you declare the method as public or protected you'll be able to call the method
from the class that inherit the abstract class
also search and read about abstract and virtual methods
it'd be convenient
@AdamG
man, I'm absolutely lost with WCF
 
12:36 PM
@Nox take a look at this - dotnetfiddle.net/T0pLgu
 
Nox
that's why I said you should read about abstract and virtual method, if you want
that the method OnNewconnection do different things on different child classes
you'll nedd to declare the abstract class's method as abstract or virtual, and then, in the child class
use the override keyword
and call the base.OnNewConnection
I'm not really sure if that was the problem but it seems so
if that's the problem, search for it on google, there are tons and tons of info about it
 
12:55 PM
I didn't want to just override the function, I wanted to extend the functionality of the abstract classes method. I made that abstract class NetworkSocket to remove repetitive behavior like binding and listening the socket.
 
Nox
if you override the function you can make just that, to force the function to do different things on different child classes:
in the child class method you start with base.OnNewConnection, that will do the same in all the children
and then do whatever you want to extend the function functionality
(pun not intended)
 
I see, thanks for clearing that up.
 
Nox
something like this:
public override void OnNewConnection(IAsyncResult result)
{
base.OnNewConnection(result);

//Do here whatever you want to do after the base functionality, like:
Console.WriteLine("Done");
}
every child can have different things instead of the Console.WriteLine
 
The only problem is, how would I access variables created inside the abstract classes method, but I'm guessing I can't do that due to scope?
Unless I assign it to a property in the abstract class.
 
Nox
if you are referring to variables created INSIDE the original method
then not, you can not access them
you can declare them as fields in the abstract class, as protected fields
protected fields or public fields/properties, so you can access them from the children
well, I have to go now, someone must cook :)
bye
@AdamG believe me, this topic is pretty typical, you'll find tons of info on google
bye
 
 
2 hours later…
2:58 PM
Hey. I got a 240GB SSD to install Windows 10+VS+etc.... should I reserve all 240GB to it or its enough to install debian too(which would require around 20GB I guess)?
 
should be enough to install both
windows10+vs is like 50gb? max
 
 
2 hours later…
Nox
5:02 PM
0
Q: WCF web service Error in deserializing body of request message for operation

NoxThis question comes from this other question. The code is basically the same except for FirstMethod and LastMethod methods which I removed because they was giving problems (I comment it in the same question). Even with that, I'll copy here the service interface just for referencing. If some of y...

 
Hey!!! Anyone here write .net core web APIS?
or...anyone here ha?
 
Nox
5:30 PM
I don't think you want my help in that... see the question I've just posted
 
5:56 PM
hey nox
yeah, i don't have to much WCF experience either
i wish microsoft would stop making so many confusing helper classes that take away our control
 
Nox
well, I'm really frustrated right now, but you know, at least make it work!
if you are going to depend on a assistant to pregenarate code
that is
if it won't work, why do you do it?
but well, I'm a hobbyist, i'm pretty sure there are tons of things I don't know about all this... but it's so frustrating :(
 
to much magic...
just make it read top to bottom, left to right.
 
7:05 PM
@AdamG it is said that the average for vs is 50-80gb, but it can go up to 210gb
 

« first day (3108 days earlier)      last day (1823 days later) »