Click here to Skip to main content
15,921,454 members
Home / Discussions / C#
   

C#

 
QuestionProblem with Paint Pin
naglbitur22-Nov-05 21:12
naglbitur22-Nov-05 21:12 
AnswerRe: Problem with Paint Pin
Stanciu Vlad22-Nov-05 21:30
Stanciu Vlad22-Nov-05 21:30 
QuestionConfig file using MS EnterpriseLib Pin
SheenSylesh22-Nov-05 18:50
SheenSylesh22-Nov-05 18:50 
QuestionWhat is STA mode Pin
kourvoisier22-Nov-05 17:53
kourvoisier22-Nov-05 17:53 
AnswerRe: What is STA mode Pin
kourvoisier23-Nov-05 5:46
kourvoisier23-Nov-05 5:46 
AnswerRe: What is STA mode Pin
mav.northwind23-Nov-05 6:18
mav.northwind23-Nov-05 6:18 
GeneralRe: What is STA mode Pin
kourvoisier23-Nov-05 10:41
kourvoisier23-Nov-05 10:41 
QuestionTypeLib for interop assembly changes case of method name Pin
turbochimp22-Nov-05 14:38
turbochimp22-Nov-05 14:38 
I'm cross-posting this here since there seems to be a much livelier discussion of interop on this thread than on either the COM or .Net Framework threads. Apologies in advance to any offended parties.

I have a scenario similar to the following:

Assume a single assembly (SomeAssembly.dll) contains the following types:
1. Class B inherits from class A
2. Class A implements properties Moe, Larry and Curly, all of type ArrayList.
3. Class B implements a public interface containing all of the public members of both classes A and B.

The problem:
I export the type library for SomeAssembly.dll using
Regasm.exe SomeAssembly.dll /tlb:SomeAssembly.tlb /codebase



When I view the generated type library, I see that while properties Moe and Larry appear as "Moe" and "Larry" (their proper case is preserved), property Curly is exported as "curly" (all lower case). So far, I haven't been able to find an explanation for this behavior, and while the CCW works just fine, the name change is a little disconcerting for my client.

The only similar article I was able to find referenced a known issue whereby if there was another "curly" property that was written to the type library first, all following same-named properties would bear the lowercase name, but there is only one "Curly" property in my assembly.

Any ideas? Failing a solution, is there any attribute decoration I might use to force the proper case in the generated type library?

Thanks.

The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’

Questionadding a Link Pin
picasso222-Nov-05 13:40
picasso222-Nov-05 13:40 
AnswerRe: adding a Link Pin
Christian Graus22-Nov-05 15:10
protectorChristian Graus22-Nov-05 15:10 
QuestionResizing window Pin
picasso222-Nov-05 13:39
picasso222-Nov-05 13:39 
AnswerRe: Resizing window Pin
Curtis Schlak.22-Nov-05 14:58
Curtis Schlak.22-Nov-05 14:58 
QuestionItemCommand triggering off of a dropdownlist Pin
Baatezu22-Nov-05 13:36
Baatezu22-Nov-05 13:36 
QuestionEventLog Pin
Guinness4Strength22-Nov-05 12:15
Guinness4Strength22-Nov-05 12:15 
AnswerRe: EventLog Pin
Guinness4Strength23-Nov-05 4:15
Guinness4Strength23-Nov-05 4:15 
QuestionChanging default format for DateTime.ToString() Pin
Dan Neely22-Nov-05 10:51
Dan Neely22-Nov-05 10:51 
AnswerRe: Changing default format for DateTime.ToString() Pin
Joshua Quick22-Nov-05 11:39
Joshua Quick22-Nov-05 11:39 
GeneralRe: Changing default format for DateTime.ToString() Pin
Dan Neely22-Nov-05 11:49
Dan Neely22-Nov-05 11:49 
GeneralRe: Changing default format for DateTime.ToString() Pin
Joshua Quick22-Nov-05 12:19
Joshua Quick22-Nov-05 12:19 
GeneralRe: Changing default format for DateTime.ToString() Pin
Dan Neely23-Nov-05 2:28
Dan Neely23-Nov-05 2:28 
Questionstrings Pin
Sam 200622-Nov-05 10:34
Sam 200622-Nov-05 10:34 
AnswerRe: strings Pin
Christian Graus22-Nov-05 11:16
protectorChristian Graus22-Nov-05 11:16 
GeneralRe: strings Pin
Sam 200622-Nov-05 12:27
Sam 200622-Nov-05 12:27 
GeneralRe: strings Pin
Christian Graus22-Nov-05 12:39
protectorChristian Graus22-Nov-05 12:39 
GeneralRe: strings Pin
Sam 200622-Nov-05 12:45
Sam 200622-Nov-05 12:45 

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.