Click here to Skip to main content
16,010,427 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Databindings fail to update db Pin
dragon526-Jan-09 16:28
dragon526-Jan-09 16:28 
GeneralRe: Databindings fail to update db Pin
Wendelius6-Jan-09 18:14
mentorWendelius6-Jan-09 18:14 
GeneralRe: Databindings fail to update db Pin
dragon528-Jan-09 15:07
dragon528-Jan-09 15:07 
GeneralRe: Databindings fail to update db Pin
Wendelius9-Jan-09 0:00
mentorWendelius9-Jan-09 0:00 
QuestionRequirment to create a web site in which user can create his mail account Pin
rahuladya5-Jan-09 20:11
rahuladya5-Jan-09 20:11 
AnswerRe: Requirment to create a web site in which user can create his mail account Pin
Lev Danielyan5-Jan-09 20:40
Lev Danielyan5-Jan-09 20:40 
AnswerRe: Requirment to create a web site in which user can create his mail account Pin
EliottA6-Jan-09 2:06
EliottA6-Jan-09 2:06 
QuestionHow Can My Code Access "Global" or "Module-Level" Methods from C#? Pin
Curtis Schlak.5-Jan-09 8:34
Curtis Schlak.5-Jan-09 8:34 
I've played with .NET/CLI for a while and have started learning MSIL/CIL.The following code compiles to a .NET executable without warning or error messages. ILASM reports in its output "Assembled global method HelloWorld."

il
.module HelloWorld.exe

.assembly extern mscorlib {}

.assembly MyAssembly
{
	.ver 1: 0: 0: 0 /* Spaces because of smiley face replacement */
}

.method public hidebysig static void HelloWorldHelper() cil managed
{
	ldstr "Hello, World!"
	call void [mscorlib]System.Console::WriteLine(class System.String)
	ret
}

.class public auto ansi HelloWorld
	extends [mscorlib]System.Object
{
	.method public hidebysig static void HelloWorld() cil managed
	{
		.entrypoint
		call void HelloWorldHelper()
		ret
	}
}


My question: how can consuming C# code access the HelloWorldHelper method? For example:

C#
/* consumer.cs */
public class Program
{
	public static void Main(string[] args)
	{
		HelloWorldHelper();
	}
}
/* end consumer.cs */


will fail to compile with "csc /r:HelloWorld.exe consumer.cs" with "error CS0103: The name 'HelloWorldHelper' does not exist in the current context."

(In case you wonder why I care about this arcane use, I am writing a compiler that targets the .NET run time.)

"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty

AnswerRe: How Can My Code Access "Global" or "Module-Level" Methods from C#? Pin
Pete O'Hanlon5-Jan-09 9:14
mvePete O'Hanlon5-Jan-09 9:14 
GeneralRe: How Can My Code Access "Global" or "Module-Level" Methods from C#? Pin
Curtis Schlak.5-Jan-09 13:55
Curtis Schlak.5-Jan-09 13:55 
QuestionRun .NET ActiveX control on IE 7.0 machine that doesnt have .NET installed.new Pin
Dattatraya K5-Jan-09 2:52
Dattatraya K5-Jan-09 2:52 
AnswerRe: Run .NET ActiveX control on IE 7.0 machine that doesnt have .NET installed.new Pin
Dave Kreskowiak5-Jan-09 3:46
mveDave Kreskowiak5-Jan-09 3:46 
Question[Message Deleted] Pin
hemakrishnan4-Jan-09 23:08
hemakrishnan4-Jan-09 23:08 
AnswerRe: Integrating HtmlHelp (.chm) file with wpf xbap application Pin
Dave Kreskowiak5-Jan-09 5:33
mveDave Kreskowiak5-Jan-09 5:33 
QuestionClick once updation issue.... Pin
nileshbahirshet4-Jan-09 3:38
nileshbahirshet4-Jan-09 3:38 
AnswerRe: Click once updation issue.... Pin
Not Active4-Jan-09 10:51
mentorNot Active4-Jan-09 10:51 
GeneralRe: Click once updation issue.... Pin
nileshbahirshet5-Jan-09 17:27
nileshbahirshet5-Jan-09 17:27 
GeneralRe: Click once updation issue.... Pin
Not Active6-Jan-09 0:39
mentorNot Active6-Jan-09 0:39 
QuestionDetermining the Datatype from the typed text in text box Pin
Vipul Mehta3-Jan-09 1:29
Vipul Mehta3-Jan-09 1:29 
GeneralRe: Determining the Datatype from the typed text in text box Pin
Luc Pattyn3-Jan-09 1:58
sitebuilderLuc Pattyn3-Jan-09 1:58 
GeneralRe: Determining the Datatype from the typed text in text box Pin
ShilpaGinodiya3-Jan-09 20:48
ShilpaGinodiya3-Jan-09 20:48 
GeneralRe: Determining the Datatype from the typed text in text box Pin
Luc Pattyn4-Jan-09 0:42
sitebuilderLuc Pattyn4-Jan-09 0:42 
GeneralRe: Determining the Datatype from the typed text in text box Pin
Vipul Mehta4-Jan-09 23:20
Vipul Mehta4-Jan-09 23:20 
AnswerRe: Determining the Datatype from the typed text in text box Pin
Roger Wright4-Jan-09 3:22
professionalRoger Wright4-Jan-09 3:22 
QuestionClient-Server Using TCP/IP and VB.net Pin
VikashGohil2-Jan-09 20:16
VikashGohil2-Jan-09 20:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.