IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1952.40 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-26
[23:16]<rrd2uppnv>does bi weekly mean twice a week or every other week
[23:16]<mjzymygo>kog... hehe... figure of speach
[23:16]<mjzymygo>but that white paper shows he was "mistaken"
[23:16]<mjzymygo>s/speach/speech
[23:16]<mjzymygo>>_<
[23:16]<kjr>jaybuffet: it means you end up being paid every 2 weeks
[23:17]<rrd2uppnv>ok
[23:17]<rrd2uppnv>looking at insurance.. and these numbers looked too cheap.. so i was just wondering...
[23:18]<rrd2uppnv>i guess it is a good deal
[23:18]<mjzymygo>shit... gotta get my Pro Indemnity insurance sorted too...
[23:18]<mjzymygo>thanks for the reminder ;)
[23:23]<rrd2uppnv>np
[23:23]<y-gz>hmmm
[23:23]<y-gz>I have 2 events
[23:23]<y-gz>I wont one to redirect the other
[23:23]<y-gz>*I want the first one to redirect everything to the second one
[23:23]<y-gz>hm may be there were add {} and remove{} for events
[23:24]<y-gz>SpikeLite c# keywords
[23:24]<nnzjpfrr>just call it in the emitter.
[23:24]<nnzjpfrr>it's not very neat to mess with event subscriber lists.
[23:24]<nnzjpfrr>just modify the emitter.
[23:24]<y-gz>it would be the only proper solution in my case
[23:24]<jyvnzs>any sailors?
[23:25]<nnzjpfrr>"proper" depends on points of view.
[23:25]<azyfm>public event FirstOne{ add{ SecondOne += value; } remove{ SecondOne -= value; } }
[23:25]<nnzjpfrr>and my pov is that it is very, very ugly to mess with subscriber lists...
[23:25]<nnzjpfrr>Arild: that's what I'm talking about: a huge mess.
[23:26]<y-gz>the DesignSurfaceManager has DesignSurfaceCreated event, which should be a proxy to the IDesignerEventService's DesignerCreated event
[23:26]<azyfm>I don't see much of a problem with it
[23:26]<y-gz>yer add / remove
[23:26]<nnzjpfrr>ok, let's get down to how events are implemented - correctly.
[23:26]<y-gz>that's waht I was after
[23:26]<nnzjpfrr>first, you need an event.
[23:26]<nnzjpfrr>event SomeType m_MyEvent;
[23:26]<nnzjpfrr>then you need a public accessor.
[23:26]<azyfm>that'd be a delegate
[23:26]<y-gz> public event DesignSurfaceEventHandler DesignSurfaceCreated;
[23:27]<nnzjpfrr>public event SomeType MyEvent { add; remove; }
[23:27]<nnzjpfrr>and then you implement the emitter...
[23:27]<y-gz>I have an emitter
[23:27]<y-gz>but the emitter is/should be in the second class to where the actual work is done
[23:27]<nnzjpfrr>protected virtual void OnMyEvent(MyEventArgs e) { ... }
[23:27]<y-gz>the first class events are just transfered to the actual service
[23:28]<nnzjpfrr>this method that raises the event, should be the hub that really causes it.
[23:28]<y-gz>I prefer the emitter parameters to be the actual members of the MyEventArgs
[23:28]<nnzjpfrr>if you have a MySecondEvent event but your OnMySecondEvent override was never called, it gets fishy...
[23:29]<nnzjpfrr>and fish stinks.
[23:29]<nnzjpfrr>if it's a sealed class, maybe it's ok.
[23:29]<y-gz>the actual worker class is sealed
[23:29]<nnzjpfrr>but if you EVER think about overriding it, don't mess with event subscriber lists!
[23:29]<nnzjpfrr>well, now you have two choices.
[23:30]<nnzjpfrr>one, that is your own, only works in your case but it will work.
[23:30]<nnzjpfrr>two, which is not your own, works just as well, is no more work to implement but will work in ANY case...
[23:30]<nnzjpfrr>pick yours...
[23:30]<y-gz>thank you
[23:30]<y-gz>;)
[23:31]<nnzjpfrr>I'd choose 2 just for the sake of good programming style...
[23:33]<nnzjpfrr>I slowly begin to understand how so many people can implement working software but just barely...
[23:37]<nnzjpfrr>of course.
[23:37]<nnzjpfrr>I ate your popcorn.
[23:37]<mjzymygo>that was the last of it bastard
[23:38]<nnzjpfrr>yummy. ;)
[23:39]<nnzjpfrr>let's see how long it takes until I get my genuine copy of windows xp 64 multilingual...
[23:39]<mjzymygo>hehe
[23:39]<mjzymygo>hehe HEHeheh
[23:39]<mjzymygo>hehehe HARHAR hehehe
[23:39]<nnzjpfrr>I might add that I'm living in germany and germans are blockheaded when it comes to international software...
[23:39]<mjzymygo>I bet you it will be 100 times faster than a certain IT support team I know...
[23:40]<nnzjpfrr>well, I'm gonna tell you what I'll do wonce I have that copy.
[23:40]<nnzjpfrr>I'll call microsoft and tell them, that their installer missed my workstation service.
[23:40]<nnzjpfrr>and that I cannot launch my debugger because of that...
[23:41]<mjzymygo>hhehehe
[23:50]<gxysvggz>indexers are nice
[23:50]<rxrcr>Moridin8, did smellyhippy shower?
[23:52]<nnzjpfrr>eXistenZ: what is an "indexer"? oO
[23:52]<gxysvggz>zeroflag, You don't know what is an indexer? :o
[23:52]<nnzjpfrr>nope, not quite...
[23:53]<nnzjpfrr>or at least I can't remember right now...
[23:53]<gxysvggz>zeroflag, Are you new to C# ?
[23:53]<nnzjpfrr>yeah.
[23:53]<nnzjpfrr>only 3 and a half years or so...
[23:53]<gxysvggz>zeroflag, An indexer is a member that enables an object to be indexed in the same way as an array.
[23:54]<nnzjpfrr>you mean like this[int index]?
[23:54]<gxysvggz>public int this ..
[23:54]<gxysvggz>yes
[23:54]<nnzjpfrr>ok, so I just didn't know the name. :P
[23:55]<nnzjpfrr>but just remember: code like "root[1][5]["something"][4][10].DoSomething()" is unreadable.
[23:55]<gxysvggz>zeroflag, Do you work with VS .NET 2005?
[23:55]<nnzjpfrr>lately, yes.
[23:56]<nnzjpfrr>actually with vc# since beta1. :P
[23:56]<gxysvggz>zeroflag, What kind of projects do you work on?
[23:57]<nnzjpfrr>lots of theoretical research...
[23:57]<slzygc>what's the difference between the paid versions of visual studio 2005 and the express edition?
[23:57]<nnzjpfrr>into game programming and game desing.
[23:57]<nnzjpfrr>sprink: the combination and the extra tools which you will never need...
[23:58]<rxrcr>multiproject support (eg Solution) is the most noticable feature lacking, imo
[23:58]<dgvjgzvjz_>The paid version gives you a big digital hug.
[23:58]<nnzjpfrr>I'm pretty sure express can handle solutions... just not cross-language...
[23:59]<rxrcr>zeroflag, last time I tried I couldn't create a solution with 2 C# projects, I had to toggle between them







