|
.Net 2.0 is old these days.
.Net 3.5 has a new system.addin namespace which contains a whole bunch of stuff that makes writing plugins very easy.
Daniel Moth introduces it here[^]
and there are 2 good MSDN articles on it here[^] and here[^]
and there is at least one good article on CP by the awsome sacha barber here[^]
Simon
|
|
|
|
|
thanks Simon Stevens
i need in .Net 2.0, can u give me in .Net 2.0 ?
|
|
|
|
|
going back to the school i have an unanswered question...
why at all we need to define constructor explicitly when all the class has its own implicit constructor
what are the cons and pros if we dont define a constructor...
Thanks
Vikas
|
|
|
|
|
Defining a blank constructor obviously does nothing. Unless you define it as private, so it can't be used ( for example when you have one that takes params and want to force the user to call it). The ability to define one exists so you can add code to it, but the compiler won't barf if it looks like the one it generates anyhow.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
First of all many thanks for your reply.....
I have one more question..
if am writing an application and not defining any constructor anywhere what are the possible impact on the application.
Thanks
Vikas
|
|
|
|
|
Absolutely zero.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
IIRC, one impact that I'd experienced of is if it's a form (maybe apply to control even) and if you want to preview it on the designer, the designer will complain that it can't find the default constructor.
|
|
|
|
|
how can i make simple active x controlin C# and call it from javascript.
|
|
|
|
|
Wow Justin - Imagine meeting you here ?
I'd consider writing a .NET component that plugs into IE, why use ActiveX, when you're still going to need your users to download the .NET framework ? Or, use C++.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 have some knowledge of applying nunit for the methods that has the return value. Am getting difficulty in understanding how to write the code for testing the methods that does not return any value .
As the assertions takes two parameters, among them one is the expected object and the other is the actual. How to do this?
Please do reply...
|
|
|
|
|
Can you show your method ?
|
|
|
|
|
You can only test the public facing portion of the method.
Often methods that don't return anything are modifying something, like database state for example. Have NUnit check the state before and after the method is called to check that the results are as expected.
If the method really doesn't make any externally visible verifiable changes then there is nothing you can do, the method isn't testable beyond a simple "run to check it doesn't throw exceptions" type of test. This in itself is valuable, so still do this for a range of inputs.
Include Debug.Assert statements in the method itself to check inputs, mid point values and object states. (NUnit can be configured to treat debug assetions as test failures.)
Simon
|
|
|
|
|
I have some knowledge of applying nunit for the methods that has the return value. Am getting difficulty in understanding how to write the code for testing the methods that does not return any value .
As the assertions takes two parameters, among them one is the expected object and the other is the actual. How to do this?
Please do reply...
|
|
|
|
|
You should assert that the method does what it is supposed to do.
Does it change state?
print stuff to the screen?
remove stuff from a list?
try make it assert the intended actions of the method.
|
|
|
|
|
hi all
i want to select the second cell in datagridview rows, and when new row was add must select the same index.(2nd cell).
thanks all
zz
|
|
|
|
|
hy everyone!
i need your help because i am stuck.
i do have bitmaps which are each stored in a byte[]. i want to merge them to a single multipage tiff. does anyone of you have a solution how to do this? (maybe a link to a project where this was done)
thanks.
stephan.
|
|
|
|
|
I don't think .NET supports this, perhaps a library like Atalasots is needed ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
|
hi all
i wount to select the Cell Number 5 on row Number 3
Who i can do that ?
thanks for any boudy hellp me
zz
|
|
|
|
|
Hi all,
I'm using Visual Studio 2005 (.net 2) to build my Windows application.
Now, I don't understand the effect of changing screen DPI.
My application is a card designer that uses forms as body of card and controls on it as contents of card.
When I change DPI from 96 to 120 the controls of application forms looks larger, but the contents of the card looks smaller.
Please help
|
|
|
|
|
Hi,
I am currently stuck up with an issue as to how to select a data structure for my application.
i will have around 16,00000 entities to be stored and one from them has to be retrieved. So i make use of the hashTable class in dotnet. Now i would like to know whether the hash-table has any limitations.
|
|
|
|
|
If the count of entities is dynamic, but can grow up to 1600000 items, you should use the HybridDictionary. It stores the name/value pairs in an very efficient way. This Dictionary uses the ListDictionary for small count of items and switches automatically to Hashtable if the count grows to a large amount of items. (Sorry, i dont know the Limit when this happens)
Hope this helps
Der Staat mit der niedrigsten Geburtenrate ist nicht die Bundesrepublik, sondern der Vatikan.
|
|
|
|
|
how to serialize a standard control like text box or a button control
|
|
|
|
|
It's rarely useful to serialise something like a UI control. What is it that you are trying to do?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Can't you just do it like you would any other object?
BinaryFormatter formatter = new BinaryFormatter();
FileStream output = new FileStream(@"C:\testfile.txt",System.IO.FileMode.Create);
formatter.Serialize(output, theControlToSerialize);
Not sure why you would want to do this though.
Simon
|
|
|
|