|
hello,
can someone know how to create a c# application based on a specific software architecture or diagrams.
for example if the developper try to create a class not included in the architecture diagram so he cannot.
tanks
dghdfghdfghdfghdgh
|
|
|
|
|
What is it you are trying to do? I can't really understand your English...
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
hey if the architecture contain 2 classes so the developper cannot create in his project more than these 2 classes
dghdfghdfghdfghdgh
|
|
|
|
|
What are you talking about, how does creating class depends on architecture?!#@$? i dont understand!! did you mean class digram?
|
|
|
|
|
Oh I get what he's saying now. The answer to his question is 4.
Mark.
|
|
|
|
|
Actually - it's 42. Now all we need to do is build a bigger and better computer that asks the right question.
|
|
|
|
|
If you don't trust your developers, fire them and hire new ones
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Five bucks says you'll get the diagram wrong the first time anyway.
Then you'll be paying all your developers to sit around doing nothing while they wait for you to fix it.
|
|
|
|
|
ellllllllie wrote: dghdfghdfghdfghdgh
or maybe he needs to learn that randomly banging on a keyboard serves no useful purpose in software development
led mike
|
|
|
|
|
Thats what intellisense is for! It turns random banging into code
|
|
|
|
|
HAHAHHAA bad reply like you but funny.
If some one is old and don't know the new and the powerfull technologie don't say(it is better).
I mean if i have an uml diagram and i wanna to create the corrsponding code so i think that it is possible to limit my classes to the uml diagram maybe by creating this diagram in .net ....
so if someone know the right answer .... if not let his tangue inside his mouth
dghdfghdfghdfghdgh
|
|
|
|
|
does it a reference to learning logical data center for visual studio
dghdfghdfghdfghdgh
|
|
|
|
|
|
So I'm trying to find a way to bind CheckBox::Enabled to an expression that looks at a unary operation of a column in two rows of a DataTable that I'm pulling using an XSD generated by VS2005. I know I can do this through a validation event, however I'd like to do it through the designer if at all possible.
Pretty much I'd like to bind checkboxobject.Enabled to:
(someDataRow["column"]==value || nextDataRow["column"]==value)
Any thoughts on how I might be able to do this?
|
|
|
|
|
Without knowing what the conditions are to either turn on or off the checkbox. If its where value equals true....
if(someDataRow['column'] == true || nextDataRow['column'] == true)<br />
checkbox.Enabled = true;<br />
else<br />
checkbox.Enabled = false;
or you could use...
checkbox.Enabled = someDataRow['column'] == value ? true : false;<br />
if(checkbox.Enabled == false)<br />
checkbox.Enabled = nextDataRow['column'] == value ? true : false;
There are many ways to accomplish this task, good luck.
Just because we can; does not mean we should.
|
|
|
|
|
BAH!!
I've already done this. I can just set a filter in a binding source and bind Enabled to any column containing a positive integer value in that source.
Thanks for your input KK. If I wind up putting code in the validation event, that's probably what I'll do.
|
|
|
|
|
Hello there,
i am using a Whirlpool hash function on a password resulting in a 512bit digest.
then with this digested pass i am encrypting data with Rijndael(256bit).
Considering that the digested hash is double the size i need .Should i :
a) double encrypt my data (the data i am talking about is relatively short max 100 char)
b) encrypt it once using an algorithm to select 32bytes out of the 64bytes of the digested pass
c) find an other hash generator
d) use a 512bit encryption
for c) and d) can you point me somewhere where i can find such algorithms implemented in c#.
Thank you all for your help.
ps: sorry for posting the same in two forums, but i think that it belongs to both.
|
|
|
|
|
If you're happy with everything else just change the hash, MD5 is 32byte(256 bit)
Here[^]
Dave
|
|
|
|
|
MD5 is not recommended since 1996. But thank you anyway.
|
|
|
|
|
REBD wrote: MD5 is not recommended since 1996
? It's still in wide use in many production environments.
You could just use half of the 512bit hash you already have.
Dave
|
|
|
|
|
DaveyM69 wrote: ? It's still in wide use in many production environments.
Which does not imply you should still use it for newer applications.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
true, no other suggestions or ideas ?
There is a difference between knowing the path and walking the path.
|
|
|
|
|
MD5 is fine for this application. The algorithm you are using to turn the password into the key has to exhibit a good random distribution (dispersion I think the term is), which MD5 does fine.
With the current weaknesses in MD5, if someone knew the password and the key they may be able to construct another password that hashes to the same key. (Thats with one round of MD5, I'm pretty certain that with two rounds they would be pretty close to stuffed).
If giving the password a bit of the ol SHA1, base64ing that and MD5ing the result makes you feel better, then do that
|
|
|
|
|
After a Linq discussion here a couple of days ago I found that
foundCollection = this.FindAll(data => data.ID > 0);
or
foundItem = this.Find(data => data.ID == ID);
inside a generic list was faster then using foreach.
I now want to use a method of the single item's class (data.ToCustomListViewItem) and return List<CustomListViewItem>
Is this possible?
I can do it using a foreach but would rather use an expression like those above.
Working example using foreach
public List<CustomListViewItem> CustomListViewItems()
{
List<CustomListViewItem> ReturnList = new List<CustomListViewItem>();
foreach (DVD thisDVD in this)
{
if (thisDVD.ID > 0)
{
ReturnList.Add(thisDVD.ToCustomListViewItem());
}
}
return ReturnList;
}
Dave
|
|
|
|
|
First, the performance gains by using FindAll or Find instead of a foreach are probably minimal, and not worth rewriting swaths of code. That said, you should use LINQ to imrpove readability of code. Also, the declarative nature of LINQ opens the door for real optimizations like PLINQ[^].
To answer your question, couple ways you can do this:
var listViewItems = from movie in dvds
where movie.ID > 0
select movie.ToCustomListViewItem(); That uses LINQ extension methods and should work just fine.
Another way is to use methods on your List<T> object itself:
List<DVD> dvdsWithPositiveId = dvds.FindAll(movie => movie.ID > 0);
List<CustomListViewItem> listViewItems = dvdsWithPositiveId.ConvertAll(movie => movie.ToCustomListViewItem());
|
|
|
|