Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
C# 2012/5.0 General Discussion Discussions about the C# 2012 language and tool not related to any specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2012/5.0 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 26th, 2013, 08:55 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default class diagrams

I´m new at programming with c#.
I have a problem generating a class Diagram?
I had made a console application and I cant generate a Class Diagram.
I´ve heard that I go to Solution Explorer and right-click on the project and then select View Class Diagram menu item.
I cant select "View Class Diagram menu item" anywhere?
Can someone help me?
This is the console application:

public abstract class MyBase
{
}
internal class MyClass : MyBase
{
}
public interface IMyBaseInterface
{
}
internal interface IMyBaseInterface2
{
}
internal interface IMyInterface : IMyBaseInterface, IMyBaseInterface2
{
}
internal Sealed class MyComplexClass : MyClas, IMyInterface

class program

static void Main(string[] args)

MyComplexClass myObj = new MyComplexClass();
Console.Writeline(myObj.ToString()):
Console.Readkey();
 
Old April 30th, 2013, 03:22 AM
Registered User
Points: 24, Level: 1
Points: 24, Level: 1 Points: 24, Level: 1 Points: 24, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2012
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Class diagram is a static diagram and it is used to model static view of a system. The static view describes the vocabulary of the system.

Class diagram is also considered as the foundation for component and deployment diagrams. Class diagrams are not only used to visualize the static view of the system but they are also used to construct the executable code for forward and reverse engineering of any system.

Generally UML diagrams are not directly mapped with any object oriented programming languages but the class diagram is an exception.

Class diagram clearly shows the mapping with object oriented languages like Java, C++ etc. So from practical experience class diagram is generally used for construction purpose.

So in a brief, class diagrams are used for:
Describing the static view of the system.
Showing the collaboration among the elements of the static view.
Describing the functionalities performed by the system.
Construction of software applications using object oriented languages.

and is have best website to learn class diagram
msdn.microsoft.com/en-us/library/vstudio/dd409437.aspx




Similar Threads
Thread Thread Starter Forum Replies Last Post
Diagrams? StreetSweaper BOOK: Professional C#, 2nd and 3rd Editions 6 June 8th, 2006 01:10 AM
Diagrams jbenson001 SQL Server 2000 3 March 31st, 2005 01:51 AM
Diagrams? StreetSweaper C# 2 January 4th, 2004 06:24 AM
diagrams yagiroy SQL Server 2000 6 June 28th, 2003 01:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.