|
Don't write any.
Your classes should be small enough that you don't need to anyway. Just use regular comments.
|
|
|
|
|
Are you suggesting that I do not put comments on internal/private methods? I appreciate that methods should be apparent and "self documenting", but this is no help unless you are reading the code. I find the answer that I should just read the code (instead of relying on documentation) is not very practical.
Tanks for your support
Pat O
<a href="http://currentchaos.blogspot.com/">Blog</a>
_ _ _
|
|
|
|
|
That's why I added, "Just use regular comments."
|
|
|
|
|
I guess I did not make myself clear. We have "internal" developers and "external" developers. That is to say we have a team that is working on the SDK and then there are the SDK customers. I want Intelliscense and popup help for the internal developers, but not for external ones. So is there a way I can remove the comments for internal and private, that I can use for one configuration of the solution "retail" and leave in for other configurations ("debug" and "release").
BTW, at this point I assume the answer is no.
Tanks for your support
Pat O
<a href="http://currentchaos.blogspot.com/">Blog</a>
_ _ _
|
|
|
|
|
You could write your own tool that would skip the internal and private ones.
Oh, wait, intellisence won't show documentation for the parts they can't see anyway.
I thought you were asking about the generated XML file.
|
|
|
|
|
I was. Doesn't intelliscense use the XML?
Tanks for your support
Pat O
<a href="http://currentchaos.blogspot.com/">Blog</a>
_ _ _
|
|
|
|
|
Not the (optional) XML file generated during a build.
I wonder whether or not conditional compilation would help:
# if InternaldBuild
<summary>... </summary>
# endif
internal void F () ...
|
|
|
|
|
Hi,
I have a custom class which inherits from IComparable & it contains properties pertaining to Sales Orders.
I have added code to sort this SalesOrders class by the 'SalesOrderDueDate' as so:-
public int CompareTo(SalesAllocationOrderDetail other)
{
return SalesOrderDueDate.CompareTo(other.SalesOrderDueDate);
}
But I am struggling to find a good example on the web of how to do this sort on another date field as well.
Basically I need to sort this class <list> based on oldest SalesOrderDueDate & then OldestTransactionDueDate - in the same mannor as Excel would do this sort based on 2 columns!
If anyone can help me I would most appreciate it.
Thanks
Janet.
Lady Programmers are a rare breed!
|
|
|
|
|
something like this?
public int CompareTo(SalesAllocationOrderDetail other)
{
int result = SalesOrderDueDate.CompareTo(other.SalesOrderDueDate);
if (result == 0)
{
return OldestTransactionDueDate.CompareTo(other.OldestTransactionDueDate);
}
else
{
return result;
}
}
|
|
|
|
|
Thanks for your quick reply - although it didn't give me the expected results, it got the old grey matter working on a Fri afternoon & my solution below now works as I want it to:-
public static Comparison<SalesAllocationOrderDetail> ByCompleteDateSort =
delegate (SalesAllocationOrderDetail s1, SalesAllocationOrderDetail s2)
{
int returnValue = -1;
if (s1.SalesOrderDueDate < s2.SalesOrderDueDate)
{
returnValue = 0;
}
else if (s1.SalesOrderDueDate == s2.SalesOrderDueDate)
{
returnValue = s1.OldestTransOnOrder.CompareTo(s2.OldestTransOnOrder);
}
return returnValue;
};
So, thanks anyway
Lady Programmers are a rare breed!
|
|
|
|
|
Cross-thread operation not valid: Control 'richtextbox1' accessed from a thread other than the thread it was created on.Give solution to this problem...
|
|
|
|
|
|
smraj1503 wrote: Give solution to this problem...
How very rude!
|
|
|
|
|
At least he didn't say that it's urgent and is not demanding to send code to his e-mail address.
|
|
|
|
|
"Its Urgent" can easily be ignored. But "Give me solution" sounds like a demand to me.
|
|
|
|
|
Hi,I am Sayem.I am Working on C#.net Microsoft Visual studio 2005. I have created some project.Now I want to incorporate them in a single project so that i can assign permission on various control based on user privileges.So I need to know programmitecally how much and what form contains in each project , How much and what control have there and their properties. How can I get all this information ? Have you any answer? Then please send me "sayem.ahm@gmail.com".
Note: I don't want to read from ...Design.cs file. I want to know have any method/ class that can give answer about all control of own project?
|
|
|
|
|
It seems like you are going to want to use Reflection. You'll need to refer to each of the project assemblies and then query or manipulate them via Reflection. Note, that if you want to interact with a Form's controls with Reflection you'll need to raise the access level of them via their Modifiers property first. Sorry, if this isn't what you wanted; I don't think the description is very clear of what you are trying to do.
Keep It Simple Stupid! (KISS)
|
|
|
|
|
This is a very bad and very impractical idea. If you need security like this, each form needs to check the users role and modify itself. This should NOT be done from a central piece of code that goes spelunking around changing all the forms. What you want to do violates OOP encapsulation coding practices.
And the only people who give a damn about your email address are spammers. In a forum environment, ALL communication stays in the forums, not in emails. That way, the entire community can participate and benefit from the answers.
|
|
|
|
|
i saw that but dont remember where, i saw that when i was looking for how to access embedded resources.
it was a routines that shows in a msgbox all resources names in project.
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
Hi everyone,
My name is Eyal Wiener, and I am in the process of developing an open
source quicksilver alternative for Windows called Mighty Box.
A year ago i published a Java version of mightybox which i ceased
working on after considering the limitations of Java.
2 months ago i started working on a new version of MB with C# on
MS.NET using WPF.
this new version include a much smarter and flexible core, which
allows even more powerful plugins than before.
The new core was built on the original Quicksilver concepts, and
architecture.
I'm looking for c# developers to join me
The MightyBox project is being hosted on Launchpad: https://launchpad.net/mb[^]
you can already review a large portion of the code which i committed to the project's repository.
to contact me, use my profile page on LP: https://launchpad.net/~eyalw[^]
project group hosted on http://groups.google.com/group/MightyBox[^]
|
|
|
|
|
hi,
i am developing a application in which i want to login through c# form and want to open my profile home page in web .
thank's
jugal
|
|
|
|
|
Good for you. Was there a question here somewhere?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Go ahead and all the best.
|
|
|
|
|
HI,
I need to connect from PDA (C# .net) to server web for exchange info.
Example, I send an info to server web and after that server have process the data, the PDA receive a result.
Can you help me with example?
Thanks a lot.
Alex
|
|
|
|
|
i have a method that is called when the formclosing event is called and it asks to exit(yes/no), if it is not how can i cancel this event ?
|
|
|
|