Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DJ_Doena

Pages: [1]
1
General Board / Create Documentation "From Here"
« on: July 13, 2006, 07:30:13 am »
Hi,

one can hit the Documentaion Button (F8) on each package. All stuff under this package will be documented. So far, so good.

Unfortunately in the generated documentation are classes referenced which are not within the documentation tree. Why? because they are linked from within the tree.

For Example:





Connector:Source:Target:
Realisation  
Source -> Destination
Public  
TestClass
Public  
ITest
Association  
Source -> Destination
Public  
TestContainer
Private m_Test
ITest


Neither TestClass nor TestContainer are within the document tree.


Is there a switch which skips all relations that lead outside the documentation tree?

2
General Board / Re: C# code generation parameter kind "return
« on: July 14, 2005, 10:53:03 pm »
Quote
C' code generator
means the "C# code generator"

3
General Board / C# code generation parameter kind "return&quo
« on: July 14, 2005, 07:51:49 am »
If I choose a parameter kind of "return" instead of "out" (what's the exact difference?) then the C' code generator does not generate the keyword "out".

4
General Board / C# code generation: Default parameter specifiers
« on: July 14, 2005, 07:19:51 am »
If I design a class and a method with a parameter that has a default value, C# code generation will generate this:

Code: [Select]
public class Foo
{
  public Foo()
 {
 }

 public void DoSomething(int i = 0)
 {
 }
}


That will bring the following error message:

Quote
Visual C# Language Concepts  

Compiler Error CS0241Default parameter specifiers are not permitted

Method parameters cannot have default values. Use method overloads if you want to achieve the same effect.

The following sample generates CS0241:

// CS0241.cs
public class TestClass
{
   public void TestMethod(int i = 9)   // CS0241
   // try the following line instead
   // public void TestMethod(int i)
   {
   }

   public static void Main()
   {
      TestClass x = new TestClass();
      x.TestMethod(9);
   }
}


--------------------------------------------------------------------------------

Send feedback on this topic to Microsoft

Microsoft Corporation. All rights reserved.

5
General Board / Re: Properties Code Generation C#
« on: July 08, 2005, 02:00:18 am »
Quote
Add a tag named "readonly" of type string. Assign it the value "it is really nice" (or better "true"  ;))



Aaah, thank you very much!

6
General Board / Re: Properties Code Generation C#
« on: July 04, 2005, 01:28:43 am »
Quote
You can add a tagged value "readonly" or "writeonly" with a non-empty value to your operation.

Could you please explain what you mean by that?

Thank you in advance.

7
General Board / Properties Code Generation C#
« on: June 10, 2005, 03:26:40 am »
Hi,

I tried to generate a property in an interface. To do so, I have to define a member in the interface which won't be generated in the c# interface file (that's correct).

If I design a class which implements this interface the getter and setter will be generated. Unfortunately the methods try to access a member variable, which is not generated.

Of course I could define a operation with the (not in list) stereotype "property". But then I can't define a readonly/writeonly property anymore, because this windows is only accessable over the member (attribute) window

8
General Board / Code generation: class with multiple interfaces
« on: June 03, 2005, 01:05:47 am »
 Hi,

if I design a class which realizes an interface all is fine. The class will be generated and contains stubs for all interface methods

If this class realizes 2 or mor interfaces none of the stubs will be generated.

Why?

9
Uml Process / Code generation: class with multiple interfaces
« on: June 02, 2005, 04:27:07 am »
Hi,

if I design a class which realizes an interface all is fine. The class will be generated and contains stubs for all interface methods

If this class realizes 2 or mor interfaces none of the stubs will be generated.

Why?

Pages: [1]