|
hahah... good one, but that didnt help...
think fast, be brave and dont stop.
|
|
|
|
|
I'll have to think about it. Gimme 7.5 million years...
|
|
|
|
|
Thank god, Apple didn't fall on you
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
What a beautiful answer: Totally useless, sarcastic and technically correct in all respects at the same time.
I want to 5 you, but I know I shouldn't .
|
|
|
|
|
One i can think is a tree or a graph, where each node is defined as the collection of all its children.
|
|
|
|
|
yeah, i thought of the same with nodes... but the thing is, on an engineering standpoint we already have better implimentations of a node... wont a collection as a node just bloat everything? newez, was just hoping for something 'unique' that it can solve with... or maybe im just crossing the line where it says 'bad design on generics' here...
|
|
|
|
|
what im really fussing about is that this can be more than just on collections... its generic interfaces, objects, and what nots on itself... u know...
think fast, be brave and dont stop.
|
|
|
|
|
Does class A : IComparable<A> { } count?
|
|
|
|
|
rights... now i feel stupid... hehehe... got my 5 here... thanks...
think fast, be brave and dont stop.
|
|
|
|
|
How about a factory
public class GenericFactory<T> where T : new()
{
public T Create(){
return new T();
}
}
|
|
|
|
|
no, the guy up there got it... i wanted to see the declared type (itself) being passed back into the generic... (with some sense into it)
think fast, be brave and dont stop.
|
|
|
|
|
------------gL6ei4ae0Ij5ei4ei4Ef1GI3ae0GI3
Content-Disposition: form-data; name="Filename"
[FILE NAME]
------------gL6ei4ae0Ij5ei4ei4Ef1GI3ae0GI3
Content-Disposition: form-data; name="Filedata"; filename="[FILE NAME]"
Content-Type: application/octet-stream
[FILE DATA]
This is a header send by client on file upload. But the problem is that I do not want to use default HttpRequest instance. All I need to get file name and file data. What is best way to parse this. The line index ? Regex ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I have just created a PerformanceCounterCategory which includes various counters type (CounterCreationData), and later using the PerformanceCounter I access to one of this counters in order to operate with them (Increment, IncrementBy ...) but my problem is how to connect my counter to the Monitor (perfmon.exe) included in XP Operative System, I don´t find in it my Category nor counters.
Best Regards
|
|
|
|
|
|
I have datetime field in the table in my database. How to assign that datetime in my local variable ?
i tried
DateTime createdDate;
createdDate = Convert.ToDateTime(result.GetString(1));
but didn't work.
suchita
|
|
|
|
|
What's the value in result.GetString(1)? Try pausing at this line and then see what the data is that's in there.
|
|
|
|
|
its the datetime field.
value is 2010-09-30 11:14:29.783
thanks
suchita
|
|
|
|
|
It sounds to me like there's a culture problem here. In other words, the format on the system doesn't match the format of data in the database.
|
|
|
|
|
yah. I have datetime field in the database. When i am retrieving using datareader, it is taking as string. I think there where the problem is? how to convert that data from the database in to the string value ?
suchita
|
|
|
|
|
|
System.InvalidCastException: Unable to cast object of type 'System.DateTime' to type 'System.String'.
this one is showing as error.
i declare the variable as datetime and string as well but it gave the same error in both. it seems since my datafield is datetime, it is having problem when i am extracting that datetime.
suchita
|
|
|
|
|
SayamiSuchi wrote: but didn't work.
In what way did it not work?
|
|
|
|
|
Assuming that result is a data reader or an sql parameter:
DateTime dateTime = (DateTime)dataReader["columnName"]
or
DateTime dateTime = (DateTime)sqlParameter.Value;
Are the most correct answers. If the field allows null, check for DbNull.Value first.
|
|
|
|
|
ya i already tried this before but it gave the same error.
suchita
|
|
|
|
|
Do not use strings for date/times if you can avoid it, as it opens up a whole range of potential problems. Instead have a datetime field in the database, and a DateTime variable in your code; then do what Ennis said.
If you must use strings, make sure to use a universal format. More is here[^]
|
|
|
|