Click here to Skip to main content
15,888,176 members
Home / Discussions / C#
   

C#

 
AnswerRe: Performance vs scalability Pin
#realJSOP26-Jun-19 6:34
mve#realJSOP26-Jun-19 6:34 
GeneralRe: Performance vs scalability Pin
Tara1126-Jun-19 9:37
Tara1126-Jun-19 9:37 
QuestionWhy is this not CLS-Compliant? Pin
#realJSOP20-Jun-19 4:51
mve#realJSOP20-Jun-19 4:51 
AnswerRe: Why is this not CLS-Compliant? Pin
OriginalGriff20-Jun-19 5:02
mveOriginalGriff20-Jun-19 5:02 
GeneralRe: Why is this not CLS-Compliant? Pin
#realJSOP20-Jun-19 5:06
mve#realJSOP20-Jun-19 5:06 
GeneralRe: Why is this not CLS-Compliant? Pin
OriginalGriff20-Jun-19 5:21
mveOriginalGriff20-Jun-19 5:21 
GeneralRe: Why is this not CLS-Compliant? Pin
#realJSOP20-Jun-19 5:24
mve#realJSOP20-Jun-19 5:24 
QuestionAm I Remembering Wrong? Pin
#realJSOP20-Jun-19 4:34
mve#realJSOP20-Jun-19 4:34 
I have a solution with two class library assemblies - TestLib1 and TestLib2.

In TestLib1, I have the following:
C#
namespace TestLib1
{
    public static partial class Globals
    {
        public static bool Property1 { get { return true; } }
    }
}
In TestLib2, I tried this:
C#
// use the referenced assembly's namespace
namespace TestLib1
{
    // add a methiod the TesLib1 assembly's Globals class
    public static partial class Globals
    {
        public static bool Method1 { return Globals.Property1; }
    }
}
In TestLib2, the referece to Property1 in results in this error:

'Globals' does not contain a definition for 'Property1'

and the reference to Globals(.Property1) results in this warning:

The type 'Globals' in TestLib2\Class1.cs conflicts with the imported type 'Globals' in TestLib1.

I thought it was logical to be able to extend existing namespaces and their partial classes in assemblies that reference the assembly that contains those namespaces/classes.

I seem to remember being able to do this a few years ago, but maybe I'm remembering wrong???
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

AnswerRe: Am I Remembering Wrong? Pin
OriginalGriff20-Jun-19 4:52
mveOriginalGriff20-Jun-19 4:52 
GeneralRe: Am I Remembering Wrong? Pin
#realJSOP20-Jun-19 4:58
mve#realJSOP20-Jun-19 4:58 
GeneralRe: Am I Remembering Wrong? Pin
OriginalGriff20-Jun-19 5:08
mveOriginalGriff20-Jun-19 5:08 
GeneralRe: Am I Remembering Wrong? Pin
#realJSOP20-Jun-19 5:14
mve#realJSOP20-Jun-19 5:14 
GeneralRe: Am I Remembering Wrong? Pin
OriginalGriff20-Jun-19 5:24
mveOriginalGriff20-Jun-19 5:24 
QuestionVery simple Async Client/Server Pin
Member 1450684320-Jun-19 2:59
Member 1450684320-Jun-19 2:59 
AnswerRe: Very simple Async Client/Server Pin
OriginalGriff20-Jun-19 3:56
mveOriginalGriff20-Jun-19 3:56 
AnswerRe: Very simple Async Client/Server Pin
Mycroft Holmes20-Jun-19 14:37
professionalMycroft Holmes20-Jun-19 14:37 
AnswerRe: Very simple Async Client/Server Pin
jschell23-Jun-19 6:08
jschell23-Jun-19 6:08 
Questionhow to create a chat application that a private chat user with a c # mvc Pin
xuannam12039220-Jun-19 0:59
xuannam12039220-Jun-19 0:59 
AnswerRe: how to create a chat application that a private chat user with a c # mvc Pin
OriginalGriff20-Jun-19 1:03
mveOriginalGriff20-Jun-19 1:03 
AnswerRe: how to create a chat application that a private chat user with a c # mvc Pin
#realJSOP20-Jun-19 1:23
mve#realJSOP20-Jun-19 1:23 
Questionretrieval of XML information & Copy to excel Files Pin
Member 1450608919-Jun-19 13:18
Member 1450608919-Jun-19 13:18 
AnswerRe: retrieval of XML information & Copy to excel Files Pin
OriginalGriff19-Jun-19 19:59
mveOriginalGriff19-Jun-19 19:59 
Questionsome bugs don't retire II: DataContract.ReadObject (includes solution by Richard Deeming) Pin
BillWoodruff18-Jun-19 17:43
professionalBillWoodruff18-Jun-19 17:43 
AnswerRe: some bugs don't retire II: DataContract.ReadObject fails after multiple writes to the same file Pin
Richard MacCutchan18-Jun-19 20:46
mveRichard MacCutchan18-Jun-19 20:46 
GeneralRe: some bugs don't retire II: DataContract.ReadObject fails after multiple writes to the same file Pin
BillWoodruff18-Jun-19 21:03
professionalBillWoodruff18-Jun-19 21:03 

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.