|
sundeepan wrote: What if its an array of objects?
Nothing, no problem
|
|
|
|
|
heh, cool..so now i'm stuck at how to return all the elements of an array at the end of a method
I cant do
for(int i = 0; i < 20; i++)
{
return arrayOfObjects[i];
}
I will have unreachable code.
|
|
|
|
|
return will jump out of the method. What are you trying to do?
|
|
|
|
|
I am trying to return an array...but I cant do
return objectArray;
the compiler error:
Error 1 Cannot implicitly convert type 'Interactive.Geo.WellLog.Track.cgStackedTrack[]' to 'Interactive.Geo.WellLog.Track.cgStackedTrack' C:\Program Files\INT\Net\3.0.3693.0\Tutorials\WellLog.NET\StackedTrackTutorial\StackedTrackTutorial.cs 177 20 StackedTrackTutorial
|
|
|
|
|
Check definition of method - should return cgStackedTrack[] if you want to do this
|
|
|
|
|
Hey thanks!
I think I fixed it. Sorry for the stupid question...
|
|
|
|
|
Well obviously if you first say you're going return something of type T and then decide to return a T[] instead, that wouldn't work. Can you change the method signature, or is it fixed in some way?
|
|
|
|
|
Soooooo how did you think you were going to return the values of 150 different variables??
|
|
|
|
|
Do you really have a valid need to do this? Online only for only an hour a day. Please expect delay in response.
|
|
|
|
|
Well...yes..but I at the end I figured out that I did not need to create 150 variable names. An array worked fine.
Sorry for the newbie question, I am a newbie and basically I've learned not to be afraid of asking "newbie" or stupid questions. That's the way I learn....
once again I apologize f r my idiocy.
|
|
|
|
|
Dear Experts
I want to remove all the input tags from following html
<p>
<input id="00000000-0000-0000-1001-000000000000" type="button" value="Customer Job ID-JobData" />
</p>
<p>
<input id="00000000-0000-0000-1002-000000000000" type="button" value="Job Date-JobData" />
</p>
The output html should look like
<p>
</p>
<p>
</p>
I have tried a lot of using javascript and regexp but failed, Give me javascript code or RegExp to solve my problem please
Thanks in advance
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:44am.
|
|
|
|
|
|
Demanding is very rude. Show what you've done and ask for help, but don't demand anyone give you code I know the language. I've read a book. - _Madmatt
|
|
|
|
|
If you're going to make demands like this, download this[^] tool and figure it out yourself.
Really, how hard could it be to look for "<input " and then "/>" or "</input>"...
|
|
|
|
|
I am trying following regular expression, but it is not working.
private string StripTagsRegex(string source)
{
return Regex.Replace(source, @"(\<[input][^\>]+\>)", string.Empty);
}
Please give me suggestion to solve my problem
|
|
|
|
|
i want data flow diagrams for the unicode optical character reconition using neural network project
tulasi
|
|
|
|
|
That's good. I'm so pleased for you, in fact there was a bit of touching cloth there, so pleased was I."WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
That's nice. People in Hell want ice water.
What are the chances we're going to supply either?
Seriously, showing up in any forum and demanding people hand over their hard work to you so you don't have to do it yourself makes you look like a steaming pile of elephant dung. If you get fired over this or fail a class, so be it. You deserve as much.
|
|
|
|
|
Hi everyone. I'm wondering about this and I can't find the answer anywhere: I know in an instance method arg_0 contains the instance the method was called on -- but what (if anything) does it contain in a static method? Would it be the type of the class the method belongs to?
(When I say arg_0 I'm of course talking about MSIL (aka CIL), the intermediate language into which C# gets compiled. Arg_0 is the implicit argument, i.e., this in an instance method. What about static methods?)
Thanks. modified on Friday, February 19, 2010 7:48 AM
|
|
|
|
|
Great, I'm an idiot. I just found it: in a static method it contains the first argument (a non-implicit argument), if any.
For example:
void instanceMethod(int intArg, float floatArg) {
}
static void staticMethod(int intArg, float floatArg) {
}
In instanceMethod :
* arg_0 = this
* arg_1 = intArg
* arg_2 = floatArg
In staticMethod :
* arg_0 = intArg
* arg_1 = floatArg
I'd delete this post, but I'll leave it up in case anyone has the same question.
Here's where I got the answer. There's a lot of useful info on Reflection.Emit.
|
|
|
|
|
Good day.
In my app have ListBox and i items draged.How to know Drag&Drop to Windows Explorer ?
My draged items size will be very big , like 4,5 GB, so i can't use MemoryStream.
Please help me.
Thanks .We are haven't bug,just temporarily undecided problems.
|
|
|
|
|
Hello Friends,
i want to get the client browser time on server side. I am developing an application in C# and i want to display some alerts according to client machine time. So please let me know if there is any way in which i can get it on server side code.
Thanks
Sher Azam
|
|
|
|
|
Read the client time using javascript, put it in a hidden field, post the form.
|
|
|
|
|
Thanks for your reply.
can you please provide me sample code for it?
actually i try this method but when i get the hidden field on server side it came empty.
a sample code will be very helpful for me.
|
|
|
|