0

Hi folks,

Okay, here's the scenario; I've got 2 DLLs, "A.dll" and "B.dll", that I'm referencing within my VS2010 C# project, "ProjectC". "B.dll" also contains a reference to "A.dll". "A.dll" contains a class, ClassA , which contains an automatic static property called ClassA.StaticProperty .

Now here's where I'm a bit uncertain as to the behaviour of my application; let's say "B.dll" contains a class method that reads ClassA.StaticProperty called ClassB.FooBar() . Now, if I say ClassA.StaticProperty = Bob; somewhere within "ProjectC", will ClassB.FooBar() see "Bob" when it reads this static property later on in the code?

I'm using a simple scenario because the detail behind my project is somewhat complex, but if it will help to understand what I'm doing I'll go into more detail :)

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by lee.j.baxter
0

Yes, B.dll will be using the same static property that the rest of your code uses, so it will have the same value everywhere.

0

Yes, B.dll will be using the same static property that the rest of your code uses, so it will have the same value everywhere.

Brilliant! Cheers mate :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.