Autor Beitrag
Phelios
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38

Win XP, Win 7
Visual Studio 2012 Express C#
BeitragVerfasst: Mo 18.05.09 08:34 
Hallöchen ...

Ich fang gerade an, mir eine Lib zu basteln, in der Methoden
enthalten sind, die man gut mehrfach verwenden kann.
Kompliliert wird mit "/doc" d.h. dass eine separate XML-Datei
im selben Verzeichnis erstellt wird, wie die neue "dll"

Wenn ich z.B. DAS HIER ...
ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
 
/// <summary>
/// Eine Kontrollausgabe, um zu testen, welche
/// Author Daten eingegeben wurden.
/// </summary>
/// <returns>String</returns>
public string ControlOut()
{
  // Hier steht was drin
}

... schreibe, funktioniert es einwandfrei, und
Intellisense reagiert korrekt darauf.

Wenn ich aber SO WAS HIER ....
ausblenden C#-Quelltext
1:
2:
3:
4:
  /// <summary>
  /// Der Vorname des Autors
  /// </summary>
  public string FirstName = string.Empty;

.... eintippe, wird nur der Klassenname, sowie
die Variable "Authorname" ausgegeben.

Frage :
Ist das normal, oder mache ich etwas falsch?

_________________
Greeting
( Karl )
JüTho
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2021
Erhaltene Danke: 6

Win XP Prof
C# 2.0 (#D für NET 2.0, dazu Firebird); früher Delphi 5 und Delphi 2005 Pro
BeitragVerfasst: Mo 18.05.09 09:00 
Hallo,

für Eigenschaften ist, wenn ich die Dokumentationsbeschreibung richtig verstehe, <value> vorgesehen.

Jürgen
Phelios Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38

Win XP, Win 7
Visual Studio 2012 Express C#
BeitragVerfasst: Mo 18.05.09 14:15 
user profile iconJüTho hat folgendes geschrieben Zum zitierten Posting springen:

für Eigenschaften ist, wenn ich die Dokumentationsbeschreibung richtig verstehe, <value> vorgesehen.

Ich hab's probiert, funktionierte trotzdem nicht.
Ich habe hier ein 1600 Seiten starkes C# Buch, wo dieses Thema
eigentlich gut erklärt ist. :D

Die Beispiele, die darin gezeigt werden, verweisen immer nur
auf Methoden, und nie auf Variablen.

Vielleicht funktioniert das so auch gar nicht.

_________________
Greeting
( Karl )
Kha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3803
Erhaltene Danke: 176

Arch Linux
Python, C, C++ (vim)
BeitragVerfasst: Mo 18.05.09 15:53 
Funktioniert bei mir :nixweiss: .
ausblenden XML-Daten
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
<?xml version="1.0"?>
<doc>
    <assembly>
        <name>ConsoleApplication1</name>
    </assembly>
    <members>
        <member name="F:ConsoleApplication1.Program.FirstName">
            <summary>
            Der Vorname des Autors
            </summary>
        </member>
    </members>
</doc>

Versuch es mal in einem Minimalprojekt.

_________________
>λ=
Phelios Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38

Win XP, Win 7
Visual Studio 2012 Express C#
BeitragVerfasst: Mo 18.05.09 21:33 
user profile iconKha hat folgendes geschrieben Zum zitierten Posting springen:
Funktioniert bei mir :nixweiss: .
ausblenden XML-Daten
1:
2:
3:
4:
5:
6:
7:
<?xml version="1.0"?>
<doc>
    <assembly>
        <name>ConsoleApplication1</name>
    </assembly>
...
</doc>

Versuch es mal in einem Minimalprojekt.


Hmm, hab ich gemacht.
Hat bei mir komischerweise auch funktioniert. :gruebel:
Ich muß wohl irgendetwas anders gemacht haben.

Trotzdem Danke für Deine Unterstützung. :beer:

_________________
Greeting
( Karl )