|
I am pretty certain that your methods need to be in a class. Try the following:
namespace ConsoleApplication1 {
public class ConsoleApplication1 {
}
} You may additionally need to set your startup class in the project properties to be ConsoleApplication1.ConsoleApplication1. Hope this helps,
Sounds like somebody's got a case of the Mondays
-Jeff
|
|
|
|
|
I read this post and that went right over my head.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I recently ran into a problem where the generated WSDL for a class that inherits from IEnumerable<myClass> serializes incorrectly. For example...
[Serializable]
public class myClass : IEnumerable<int> {
public int[] values {
get { ... }
set { ... }
}
public int OtherProp {
get { ... }
set { ... }
}
} Then, in the web service, I have a method...
[WebMethod]
public myClass GetMyClass() {
return new myClass();
} The problem is that the method 'GetMyClass()' is returning an object of type 'int[]' instead of returning a type 'myClass'. Is there some way to override this erroneous serialization so it returns a 'myClass' type instead of the array so I get the 'OtherProp' information as well? It should be noted that removing the base interface from myClass makes the class serialize as I am requesting. However, I would like to use the IEnumerable interface within my code on the server side. Thanks in advance,
Sounds like somebody's got a case of the Mondays
-Jeff
|
|
|
|
|
upgrade to .Net 3.0 Service Pack 1.
Silence is the voice of complicity.
Strange women lying in ponds distributing swords is no basis for a system of government. -- monty python
Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay
|
|
|
|
|
Why will this help? Is there some way to accomplish this in .Net 2.0? Thanks,
Sounds like somebody's got a case of the Mondays
-Jeff
|
|
|
|
|
Skippums wrote: Why will this help? Is there some way to accomplish this in .Net 2.0? Thanks,
no, you can't do it in .net 2.0 because there's a bug in the svcutil.exe.
you need the bug fix that comes with updating to .Net 3.0 SP1.
You can then take the generated code and use it with .Net 2.0
Silence is the voice of complicity.
Strange women lying in ponds distributing swords is no basis for a system of government. -- monty python
Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay
|
|
|
|
|
hi there,
i'm trying to insert a text at particular column and row(item) in listview,
and i think it may not be done easily.
e.g.
i have 50 columns in a listview and i add a item and want to insert some text on 1st and 49th column of listview.
insert on 1st column is simple(below), but how can i insert directly in 49th column.
listView1.Items.Add("SOME TEXT", 0);
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)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Create your subitems, set the text of the one you need (the 49th) and add these subitems to a listviewitem, then add this listviewitem to your listview.
Dave
|
|
|
|
|
yeah but it will add 48 useless subitems, and is there any alternative way to do this, because the index may change then i can use key of the column, but i dunno how ??
EDITED :
SOLVED
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)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
modified on Wednesday, February 20, 2008 11:15 PM
|
|
|
|
|
Hi,
I need to display CSH from my app. I call
Help.ShowHelp(this, "myHelpFile.chm", HelpNavigator.Topic, "secondTopic.htm");
and it works fine, but I can't get the help file to expand the nodes and scroll to that specific topic. All it does is displays the topic, but the table of contents stays collapsed.
Is there any way of doing this? I'm using .Net 1.1
thanx
|
|
|
|
|
can anyone help me in this,
i have a multi form app. , i have many open forms, all of the same type(say MyForm)
i want to get the text of a textbox inside each open forms)
as well as many info, including the position of the form
can anyone tell me how to do it
thnx in advance
Web Developer @ Silverkey Egypt
|
|
|
|
|
Maybe add each form to a collection as you instanciate them, then iterate through the collection.
Dave
|
|
|
|
|
1. If it's MDI, you can get the open forms in MDIChildren.
2. If it's not, you can get the open forms in Application.OpenForms.
Expose a get-only string property from MyForm, which return the text box's Text property. Get all the open forms from 1 or 2, check whether it's type of MyForm, cast the form to MyForm and access the exposed property.
|
|
|
|
|
thanks you very much, will try that
Web Developer @ Silverkey Egypt
|
|
|
|
|
Hi, I'm using .Net 1.1 and I'm looking for a way to set a proxy for the axWebbrowser component...
I did googled for a while, but without any luck :/
any ideas?
Thx ahead
|
|
|
|
|
Under .NET 1.1, it uses the proxy settings setup in IE. There is no option to specify your own proxy settings seperately. That didn't appear until .NET 2.0.
|
|
|
|
|
Hi,
How can I add a linear regression line (like Excel's trend line) to a OWC chart object in a Windows Forms application?
Thanks
|
|
|
|
|
Does the CSharp compiler come with all versions of .NET Framework?
Is it totally free to use the CSharp compiler?
_____________________________
...and justice for all
APe
|
|
|
|
|
IT is free to use the C# compiler, as it's distributed with the free .NET SDK.
I don't believe it's distributed as part of the .NET runtime.
|
|
|
|
|
Judah Himango wrote: I don't believe it's distributed as part of the .NET runtime.
I think that it is, but I may be completely wrong.
|
|
|
|
|
Ed, you're right. The C# compiler is installed as part of the .NET Runtime.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Good Delphi isn't making me go loopy then...
|
|
|
|
|
Hi,
YSisins is a generic collection
YAS_BOND_PX is a property inside the above generic collection
in some cases some of the records in the generic collection is empty i.e. no value
When I debug this line
YSisins[intCounter].YAS_BOND_PX.ToString()
in the immediate window it shows:
'YSisins[intCounter].YAS_BOND_PX' is null
Question: In code, how do I check if this has a value or not?
I tried the following but they give error:
if (YSisins[intCounter].YAS_BOND_PX.ToString().Length > 0)
if (YSisins[intCounter].YAS_BOND_PX.ToString() is null)
if (YSisins[intCounter].YAS_BOND_PX.ToString() = "null")
error is :
object reference not set to an instance of an object
Thanks
|
|
|
|
|
It sounds like YAS_BOND_PX is an object which needs instanciating whenever you create a new element in the YSisins collection
Dave
|
|
|
|
|
arkiboys wrote: Question: In code, how do I check if this has a value or not?
I tried the following but they give error:
if (YSisins[intCounter].YAS_BOND_PX.ToString().Length > 0)
if (YSisins[intCounter].YAS_BOND_PX.ToString() is null)
if (YSisins[intCounter].YAS_BOND_PX.ToString() = "null")
Well, if its null you can't call .ToString() on it - hence the error.
if(YSisins[intCounter].YAS_BOND_PX == null) is what you're after.
|
|
|
|