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: 1822.25 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-07
Pages: < Prev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Next >
[19:27]<drdyrrr_>your Provider<T> is not the parent class of BuyerProvider and SellerProvider
[19:28]<svzz[wjzc]>so so i have any option... ?
[19:29]<drdyrrr_>well you have to come up with a different design
[19:29]<drdyrrr_>if you forget all your classes for a second.
[19:29]<drdyrrr_>and imagine a form that edits List<T>
[19:29]<rgvjggyj>is there one way to truncate fractinal part example 6.3944, i want to get .3944 ?
[19:29]<drdyrrr_>you can't write one form that edits strings and int's using a List<object>
[19:30]<aauddygs>antonnio: subtract 6
[19:30]<drdyrrr_>because List<object> is not a List<string> nor a List<int> they have nothing in common at runtime.
[19:30]<svzz[wjzc]>BUT...
[19:30]<dzmzaivnz>I think I ran into an identical issue in Java a while ago and got very irritated by it. :)
[19:31]<svzz[wjzc]>a list<object> and have any new something() added to it
[19:31]<drdyrrr_>yes it can
[19:31]<vufvuzn>StaZ[work]: so if you referenced a list<object> with a list<int> reference and tried to retrieve an element that was a non-int object - what would happen?
[19:31]<drdyrrr_>but you can't ever use it as a List<int>
[19:32]<dzmzaivnz>Of course in ML this all works wonderful. :) (Except for the bajillion issues ML has with polymorphic typing if you look at it hard enough, but never mind)
[19:32]<rjmsry>how do i get ordinal numbers in c#?
[19:32]<dzmzaivnz>Just start with zero, add one and then iterate transfinitely.
[19:32]<drdyrrr_>you have to remember with generics that it's not inheritence even if you put an intermediate class in there.
[19:32]<drdyrrr_>every <T> becomes a new class in it's own right.
[19:33]<dzmzaivnz>(Sorry, that joke isn't going to make sense to anyone in here but me)
[19:33]<rjmsry>huh?
[19:33]<svzz[wjzc]>hm
[19:33]<drdyrrr_>ordinal number? Of what, an enum?
[19:33]<rjmsry>of an int
[19:33]<rjmsry>1st 2nd 3rd
[19:33]<rjmsry>for 1 2 3
[19:34]<drdyrrr_>oh, you want english suffixes
[19:34]<drdyrrr_>i think you have to code it yourself
[19:34]<rjmsry>ok
[19:34]<drdyrrr_>there's nothing in .net afaikr
[19:35]<drdyrrr_>i did have a vbscript class to do it...
[19:36]<svzz[wjzc]>GODDAMN that sucks i was full proud of my concept
[19:36]<svzz[wjzc]>>_<
[19:37]<fyfuym-syfggag>StaZ[work]: it can work
[19:37]<fyfuym-syfggag>but think about it
[19:37]<fyfuym-syfggag>again
[19:38]<vxznrm>godsai, something like this: http://www.rafb.net/paste/results/8UM2Fw93.html
[19:39]<svzz[wjzc]>i'm gonna get an headache
[19:40]<fyfuym-syfggag>StaZ[work]: I have a good book on generics if you are interested
[19:41]<mggvrf_ffjss>Hello. I am having a problem where when I pass a datetime to another method in a different class, it is reverting back to DateTime.Now. Now I can imagine it's because it's a local variable...but how would I get around this?
[19:42]<fyfuym-syfggag>Mental_Floss: keep it in a local variable?
[19:42]<fyfuym-syfggag>ie private DateTime datenow;
[19:43]<fyfuym-syfggag>datenow = DateTime.Now -=-- do you formating
[19:43]<fyfuym-syfggag>the pass DateNow to the class
[19:43]<svzz[wjzc]>Liquid-Silence i don't think it's a generic problem here, it seems a logical problem that i HATE not being able to find the solution¸
[19:43]<fyfuym-syfggag>eh
[19:43]<fyfuym-syfggag>well the book is good AFICT
[19:44]<mggvrf_ffjss>I'm doing that. Im assigning it from DateTimePicker control
[19:44]<svzz[wjzc]>afict?
[19:45]<sdnffdxdlld>as far as i can tell
[19:45]<fyfuym-syfggag>:)
[19:45]<fyfuym-syfggag>smellyhippy: :D
[19:45]<mggvrf_ffjss>DateTime DT = DateTimePick1.Value; SomeClass SC = new SomeClass(); SC.SendTime( DT ); // DT reverts back to DateTime.Now
[19:45]<fyfuym-syfggag>actually
[19:45]<sdnffdxdlld>that was an easy acronym ;)
[19:45]<fyfuym-syfggag>it should be
[19:45]<fyfuym-syfggag>AFAICT
[19:45]<fyfuym-syfggag>ILUSH
[19:45]<fyfuym-syfggag>:)(
[19:45]<fyfuym-syfggag>get that
[19:45]<fyfuym-syfggag>ILUSH
[19:45]<sdnffdxdlld>I love you smellyhippy :P
[19:46]<sdnffdxdlld>lol
[19:46]<fyfuym-syfggag>hehe
[19:46]<fyfuym-syfggag>correct
[19:46]<fyfuym-syfggag>IHUK
[19:46]<sdnffdxdlld>except smellyhippy is one word and you begins with y ;)
[19:46]<fyfuym-syfggag>IHUK?
[19:46]<fyfuym-syfggag>I hate you Kog
[19:46]<svzz[wjzc]>smellyhippy do you know i primarily speak french?
[19:46]<fyfuym-syfggag>:P
[19:46]<sdnffdxdlld>no! your english is very good
[19:47]<fyfuym-syfggag>StaZ[work]: I dont speak english
[19:47]<mjzymygo>nor do I...
[19:47]<svzz[wjzc]>smellyhippy thank you, still some english subtleties gives me trouble :P
[19:47]<sdnffdxdlld>lol they give us all trouble ;)
[19:48]<mjzymygo>I speak poop, and smellyhippy I think speaks shite.
[19:48]<mjzymygo>Not sure about english tho...
[19:48]<svzz[wjzc]>lôl
[19:48]<fyfuym-syfggag>I can type but not speak
[19:48]<fyfuym-syfggag>heh
[19:48]<fyfuym-syfggag>quite ghei actually
[19:49]<sdnffdxdlld>i stutter and slur quite a bit
[19:49]<fyfuym-syfggag>I sound funny when I speak english
[19:49]<fyfuym-syfggag>[Lag: 76 (??)
[19:49]<fyfuym-syfggag>damn
[19:49]<fyfuym-syfggag>insane shit
[19:49]<fyfuym-syfggag>erm
[19:49]<fyfuym-syfggag>wtf is that
[19:49]<fnzjy>smellyhippy: cause you need to swallow son
[19:50]<sdnffdxdlld>nahh its more likly because of mild brain damage on top of a pre-existing condition ;)
[19:50]<fyfuym-syfggag>leroi: trust me smellyhippy swallows
[19:50]<fyfuym-syfggag>*grins*
[19:50]<fnzjy>smellyhippy: so you're the reason why they put labels on the bottoms of bottles saying "Warning: do not turn upside down"??
[19:50]<fnzjy>;p
[19:50]<sdnffdxdlld>yeah and then i bite ... clean off
[19:51]<sdnffdxdlld>just check out Liquid-Silence
[19:51]<sdnffdxdlld>:P







