« first day (1477 days earlier)      last day (3454 days later) » 

12:08 AM
@Kendall Frey just a little question without googling, is it possible to update an object in a list like: List<class> list = new List<class>();
 
@MikeM. What's the question? That line of code is fine.
 
I know it's fine
but is it possible to edit an object in the list.
or would I have to remove that object and place it into it again...?
 
you mean list[0].Thing = something?
 
maybe ye
 
That works if the type in the list is a reference type
because you only change the object, not the reference, which is what the list sees
 
12:22 AM
lets say the class is team with teamid and name
class name: Team
List: List<Team> teamList = new List<Team>();

private void editTeam(Team team){
int tIndex = teamList.FindIndex(x => x.teamid == team.teamid);
list[tIndex].name = team.name;
}
that would work. right
 
it should
you probably would be better off using team instances instead of id
 
howso?
teamid is an int in the class team, as it is unique I don't think it really matter atm. :)
 
then you could do team.Name = name, and any reference to team would see the new value
 
hmmm
it's a little school project I seen worse code :)
 
I'm gonna go play hockey, have a nice night
 
12:25 AM
need to upload it sunday :)
same with a php guide XD
@KendallFrey Have fun I guess.
 
12:47 AM
`var teamName = teamList.Where(x => x.teamID == m.teamID).Select(x => x.name);`

How would I return the name from this list?
I have no idea what to search for to be honest.
 
 
1 hour later…
1:57 AM
what o you mean return the name from the list
return teamName lol like that
 
2 hours ago, by Mike M.
lets say the class is team with teamid and name
class name: Team
List: List<Team> teamList = new List<Team>();

private void editTeam(Team team){
int tIndex = teamList.FindIndex(x => x.teamid == team.teamid);
list[tIndex].name = team.name;
}
not the void just the first 3 lines.
I got it fixed tho'
I was just derping
Fix:
Team team = teamList.Where(x => x.teamID == m.team1).FirstOrDefault();
lvi.SubItems.Add(team.name);
 
2:16 AM
hurray for you then
hooray
 
got what you mean :)
college uno...
so stupid...
1 damn form to go :)
then I need to make a new class diagram #suicide :P
and yet it's 3:30 AM -.-
Anyone can test the application for me aswell to see if there are no bugs?
I really would appreciate it.
if you need me just tag me.
notifications are on
 
oh lol. is it up online
 
2:40 AM
@c0dem0nkey No it's an executable.
 
3:02 AM
Pics:
http://i.imgur.com/TyGrhsr.png
http://i.imgur.com/BJrKpsv.png
http://i.imgur.com/blIxIJv.png
http://i.imgur.com/lpvgWbq.png
http://i.imgur.com/v3AjjLO.png
 
Dude that first sentence...
Welcome in the application of handball team playoff?
 
ye don't mind that
it was filling up
 
but it makes no sense :P
 
this whole application doesn't make sense -.-
my whole freaking college doesn't make sense...
 
wat
r u having a nervous break down
 
3:06 AM
why so?
 
3:23 AM
gonna work on that class diagram
tomorrow :)
it's 4:30 AM
I think I wasted enough time -.-
sleepwell everyone!
 
Welcome to the Playoff Management Panel***
also was created, not is created
is english your second language?
 
 
1 hour later…
4:54 AM
holds up sign I am here for @aspiring
 
 
3 hours later…
7:46 AM
weekend in office
-__-
anyone here??
 
 
2 hours later…
10:11 AM
anyone here...
this is my xml
<configuration>
<slides audio="http://example.com/audio.mp3">
</slides>
</configuration>
how to get attribute(audio) of node Slides?
@Krishjs u there?
 
s
 
can you pls help me?
 
here
could help
 
how to get attribute(audio) of node Slides in the above xml?
thnx for your reply
 
Use XDocument
to parse the XMl
 
10:15 AM
can u send code?
 
XDocument xdoc = XDocument.Parse("<configuration><slides audio=\"http://example.com/audio.mp3\"></slides></configuration>");
XAttribute xarr = xdoc.Elements("configuration").FirstOrDefault()
.Elements("slides").FirstOrDefault().Attributes("audio").FirstOrDefault();
but do check the null for First or Default
string vall = xarr.Value;
@Illaya Does it Help
 
just a min checking
working... thank you so much
@Krishjs
 
Fine
 
10:53 AM
sup
 
 
2 hours later…
12:50 PM
Hello, is there someone which wants to help me with a regex on c#?
 
 
7 hours later…
7:31 PM
Hello,
anybody here proficient with Entity Framework can verify if/that in EF6 Navigation properties created in Code first still don't raise PropertyChanged ? (..or I'm doing something wrong :)
 
 
1 hour later…
8:32 PM
I have a variable of static type "object" which has an actual type of "List<int>" and I need to cast or convert it to "List<object>". How do I do this?
 
what is 'static type'?
I don't recognise that terminology for C#
 
the type at compile-time
 
I guessed it might be, rarely is anyone I'm aware of that specific.
The situation you're talking about I think is covered by contravariant/covariant generic types, I can never remember which one is which
 
variance is your enemy here
 
contravariant/covariant types have an implicit upcast/downcast (reorder as appropriate) between T and TDerived/TBase, if I recall correctly
 
8:36 PM
Probably your best bet is new List<object>((IEnumerable<int>)list)
 
I don't think the concrete type List has variance, but IList does
 
@TomW IList shouldn't...
 
really?
googles
 
nope, it's semantically impossible
IEnumerable can, because it only passes data out
 
Pants, you're right
 
8:37 PM
Action can, because data is only passed in
 
I never really understood it
I thought they'd just blanket reimplemented all the generic collection interfaces in (4.0?)
more specific than that
TIL...
 
They would have if they could have
Should List be covariant or contravariant?
both ways don't work
 
Yes, I take your point
so that escalated quickly
@BryanEdds IIRC a cast doesn't exist, so some projection or a new list instance will be required. @KendallFrey do you concur?
 
Talked quite a lot of programming with a friend in the presence of his g/f today. The reaction of non-programmers when the jargon starts flying is either amusing or embarrassing depending on whether I feel I'm ruling the crowd at the time
 
I mean...they're both friends, independently, she's not a hanger-on or anything. Just not a programmer. That's ok, we live in a tolerant society
 
this is the least interesting information you've shared in some time
 
Not my fault most of the bad commit messages aren't on GitHub
there's a lesson to be learned here
side note: I like playing around with APIs
 
Magdalena Hammer is probably the coolest name I've ever seen on Github
that's probably perfectly ordinary if you're...I dunno, Danish or something
 
9:05 PM
Hello everyone :)
 
9:17 PM
word
 
@TomW word what?
 
!!urban word
 
@TomW [Word](http://word.urbanup.com/41592) 1) well said
2)said in a agreement
3) can be used as a greeting, hey whats up
 
@TomW [Word](word.NormalLanguage.com/41592)
1) MS Word
2) A word for word
 
Do I tell you how to speak Nederlands? No? Didn't think so
 
9:32 PM
@TomW Oh wow did you get stuck with something? don't be so bitchy hatin.
And go ahead do it. I believe the English word for "Nederlands" is "Dutch" so ye go ahead :)
You want it, you get it :)
 
I googled it just for you
 
@TomW No need to, I am capable to translate that for myself.
 
 
1 hour later…
10:41 PM
Finally done with college work
 
11:04 PM
hi
 
11:28 PM
Anyone here familiar with EntityFramework?
hey JustinJDavies, are you familiar with EntityFramework by any chance?
 
@JoshBjelovuk Just here for a few minutes, if it's a short question, go for it
 

« first day (1477 days earlier)      last day (3454 days later) »