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.19 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-06-15
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 >
[20:17]<zgzzcygnv>a #validate command would be cool, where you pass it a line of C# code and it compiles (not runs) it, to check for syntax errors and such
[20:17]<sdnffdxdlld>an idea on how to solve this bug would be best right now ;)
[20:17]<sdnffdxdlld>it'd be hard to validate the line out of context, though it could do simple checking
[20:18]<zgzzcygnv>just pass it to csc.exe :P
[20:18]<mjzymygo>sharpbot?
[20:18]<zgzzcygnv>smellyhippy
[20:18]<zgzzcygnv>whats the xmlns:xsd= for?
[20:18]<mjzymygo>hi Kog
[20:18]<mjzymygo>hi Anarki
[20:19]<zgzzcygnv>shouldnt it be xsi:schemaLocation= or w/e it is?
[20:19]<sdnffdxdlld>thats what xml serialize puts in there ... but thats not the problem
[20:19]<sdnffdxdlld>it doesnt even get to there
[20:19]<zgzzcygnv>wheres your reading code?
[20:19]<zgzzcygnv>you need to make an XmlReaderSettings object and set the encoding to UTF-16
[20:20]<kjr>smellyhippy: if it's any consolation, the XML is well formatted ;)
[20:21]<zgzzcygnv>hehe
[20:22]<mjzymygo>smippy: you got an example that Serialize/deserialize you can paste up or send to me?
[20:22]<sdnffdxdlld>http://rafb.net/paste/results/HrC0Xs13.html
[20:22]<sdnffdxdlld>^^read
[20:22]<mjzymygo>uhn...
[20:22]<sdnffdxdlld>hehe i should have put both in one paste really ;)
[20:23]<zgzzcygnv>erm
[20:23]<zgzzcygnv>i'm not familiar with the using statement except at the top of the file to bring in namespaces
[20:23]<zgzzcygnv>but anyway, i'm right
[20:23]<sdnffdxdlld>all it does is dispose the object
[20:23]<zgzzcygnv>you need to do:
[20:24]<zgzzcygnv>XmlReaderSettings settings = new XmlReaderSettings(); settings.Encoding = Encoding.UTF-16;
[20:24]<zgzzcygnv>then
[20:25]<zgzzcygnv>get rid of thse StreamReader objects
[20:25]<zgzzcygnv>use XmlReader and pass settings to the XmlReader constructor
[20:26]<sdnffdxdlld>and what should i use to populate the xmlreader with the xml?
[20:29]<zgzzcygnv>dunno
[20:29]<zgzzcygnv>umm can you declare an interface inside of a class?
[20:30]<sdnffdxdlld>well the STreamReader, reads the file and then passes it to the Derserializer ... which then puts the stream into an XmlReader
[20:30]<zgzzcygnv>thats the wrong order
[20:31]<zgzzcygnv>the XmlReader reads the xml file and you pass the XmlReader to the Deserializer
[20:31]<sdnffdxdlld>the deserializer can take a stream and puts it into an XmlReader
[20:31]<sdnffdxdlld>or so it calims :P
[20:31]<sdnffdxdlld>claims ;)
[20:33]<sdnffdxdlld>xmlreadersettings has no encoding property
[20:33]<sdnffdxdlld>and its not Encoding.UTF-16 its Encoding.Unicode
[20:33]<sdnffdxdlld>(which is utf-16)
[20:34]<zgzzcygnv>er...yeeah
[20:34]<zgzzcygnv>i just woke up pffft -_-
[20:34]<fyfuym-syfggag>smellyhippy you got any networking suport?
[20:35]<fyfuym-syfggag>support = experience
[20:35]<sdnffdxdlld>the encoding is handled by whatever readers the file into a stream i.e. the stream reader ... the xml reader handles the reading of that stream into xml
[20:35]<sdnffdxdlld>liquid-silence, bits and bobs
[20:35]<sdnffdxdlld>errr *reads the file
[20:35]<fyfuym-syfggag>smellyhippy mind if I pm quick
[20:35]<fyfuym-syfggag>this is weird
[20:35]<sdnffdxdlld>it'd be better if you say it in the chan so all can benifit from my infinate wisdom lol
[20:36]<sdnffdxdlld>or more likly someone else will know better than I and you'll solve it quicker
[20:36]<fyfuym-syfggag>smellyhippy;s
[20:36]<fyfuym-syfggag>its really unrelated
[20:37]<fyfuym-syfggag>smellyhippy join #flood quick
[20:38]<sdnffdxdlld>no thanks ;)
[20:38]<zgzzcygnv>hmmm
[20:38]<fyfuym-syfggag>lol
[20:38]<fyfuym-syfggag>I need to paste
[20:38]<sdnffdxdlld>rafb.net
[20:39]<sdnffdxdlld>lol
[20:39]<zgzzcygnv>i wonder if you could cool a computer by circulating the C02 gas thats released by melting dry ice....
[20:39]<sdnffdxdlld>you can cool one by emersing it in oil
[20:39]<sdnffdxdlld>with the right oil of course
[20:39]<zgzzcygnv>does oil look like gas to you? :P
[20:39]<sdnffdxdlld>no why does it to you?
[20:39]<zgzzcygnv>no it doesnt
[20:40]<zgzzcygnv>i didnt talk about oil
[20:40]<zgzzcygnv>i talked about gas
[20:40]<zgzzcygnv>i wonder if you could cool a computer by circulating the C02 gas thats released by melting dry ice....
[20:40]<sdnffdxdlld>aye and I said you can with oil ... i didnt metion gas at all :P
[20:40]<sdnffdxdlld>mention
[20:40]<zgzzcygnv>thats because your a silly hippy
[20:40]<sdnffdxdlld>yes, this is true
[20:41]<sdnffdxdlld>also an annoyed frickin hippy
[20:42]<mjzymygo>dude. my code (using my own classes of course) work fine.
[20:42]<mjzymygo>*shrugs*
[20:42]<sdnffdxdlld>:/
[20:42]<svzz[wjzc]>hey guys, ADO classic's Recordset had a .Find method, that was taking an "expression" as a param, and that expression could be something like : "NameFiled LIKE '%foo&'" which allows client-side searching, the ADO.NET 2.0 DataTable/BindingSource has a .Find method but it takes a field name and a value, and looks for the exact value, is there a Search functionnality somehwere in ADO.NET that matches the ADO Classic one?
[20:42]<mjzymygo>I can only assume its to do with formatting somewhere
[20:45]<sdnffdxdlld>yer :/
[20:45]<sdnffdxdlld>:\
[20:45]<duzj>hello, If I want to create a global enum, I need to place it in it's own class?
[20:46]<y-gz`juv>shuv it in a class and make it static
[20:46]<y-gz`juv>:Pp
[20:46]<irbmn>just make a new cs file and stick it in there
[20:46]<irbmn>it doesn't have to be inside a class
[20:47]<duzj>ok
[20:48]<sdnffdxdlld>fuck xml, food calls
[20:49]<duzj>now, to pass an enum field to a function i do like this? foo(Enums days)?
[20:50]<duzj>I can't access Enums' fields (days.blabla) inside foo! do I need casting?
[20:51]<y-gz`juv>enum MyEnum { ... }
[20:51]<y-gz`juv>foo (MyEnum myenum)
[20:51]<duzj>yes, but how to access them in foo?
[20:52]<y-gz`juv>http://msdn2.microsoft.com/en-us/library/x53a06bb.aspx
[20:54]<duzj>?
[21:04]<sdnffdxdlld>yuro, you access it like any other parameter on a method
[21:07]<vxyzmly2z>is there anyway to not let a user leave a win form unless a certain method is run?
[21:08]<txnjzd>run that method when the user closes the form?







