05.01.12: Bibliotheken im Showroom - Klassendiagramm statt Screenshot
@Markus:
Definiere: "Textform" ...
Folgendes ist "Text" und eine PERFEKTE Beschreibung:
Spoiler anzeigen
Weil es nämlich die XML Comments aus dem Sourcecode sind!
Das ist zwar nicht gerade übersichtlich, aber aussageKRÄFTIGER als ein reines Klassendiagramm ist es allemal ...
@Markus:
oder ihr macht die Übersicht in Textform.
Definiere: "Textform" ...
Folgendes ist "Text" und eine PERFEKTE Beschreibung:
Weil es nämlich die XML Comments aus dem Sourcecode sind!
XML-Quellcode
- <?xml version="1.0"?>
- <doc>
- <assembly>
- <name>
- NTHLibrary
- </name>
- </assembly>
- <members>
- <member name="M:NTHLibrary.StringExtensions.Contains(System.String,System.String,System.StringComparison)">
- <summary>
- Checks if a string contains another string
- </summary>
- <param name="s">Source string</param>
- <param name="find">String to find</param>
- <param name="cmp">Compare option</param>
- <returns>TRUE if the find-string was found, FALSE if not</returns>
- <remarks>For whatever reason, Contains() lacks the possibility to
- define how to compare the string objects - like ignore case etc. This
- function simply maps the indexof function which DOES have this
- ability</remarks>
- </member><member name="M:NTHLibrary.StringExtensions.LevenshteinDistance(System.String,System.String)">
- <summary>
- Calculates the Levenshtein distance of two strings
- </summary>
- <param name="source">String 1</param>
- <param name="target">String 2</param>
- <returns>Levenshtein distance</returns>
- <remarks>C# sample ported to VB.Net
- Original: http://www.merriampark.com/ldcsharp.htm
- </remarks>
- </member><member name="T:NTHLibrary.StringExtensions">
- <summary>
- Extension methods for "String"
- </summary>
- <remarks></remarks>
- </member><member name="M:NTHLibrary.IComparableExtensions.IsInGroup``1(``0,``0[])">
- <summary>
- Determines if an object/value is one of the other objects/values
- </summary>
- <typeparam name="T">Generic Type</typeparam>
- <param name="obj">Object/value to test</param>
- <param name="group">A bunch of objects</param>
- <returns>TRUE if obj is inside the group, FALSE if not.</returns>
- <remarks>This is just the reverse function to <c>If Something.Contains()</c></remarks>
- <overloads>Check if a value falls into a group</overloads>
- <see cref="!:Overload:NTHLibrary.IComparableExtensions.IsInGroup(T,IEnumerable(Of T)"/>
- </member><member name="M:NTHLibrary.IComparableExtensions.IsInGroup``1(``0,System.Collections.Generic.IEnumerable{``0})">
- <summary>
- foo
- </summary>
- <typeparam name="T"></typeparam>
- <param name="obj"></param>
- <param name="l"></param>
- <returns></returns>
- <remarks></remarks>
- <see cref="!:Overload:NTHLibrary.IComparableExtensions.IsInGroup(T,IEnumerable(Of T)"/>
- </member><member name="M:NTHLibrary.IComparableExtensions.IsInRange``1(``0,``0,``0)">
- <summary>
- Determines whether a value falls into a given range. Both boundaries are included.
- </summary>
- <typeparam name="T">Type of the value</typeparam>
- <param name="value">object to test</param>
- <param name="lowerboundary">lower boundary to test</param>
- <param name="upperboundbary">upper boundary to test</param>
- <returns>TRUE if the value falls into the given range. FALSE if not or
- if upperboundary is lower than lower boundary</returns>
- <remarks></remarks>
- </member><member name="T:NTHLibrary.IComparableExtensions">
- <summary>
- Extension methods that belong to IComparable
- </summary>
- <remarks></remarks>
- </member><member name="T:NTHLibrary.NamespaceDoc">
- <summary>
- The NTHLibrary is a compilation of some nice to have pieces of code ;)
- </summary>
- <remarks>tOdO</remarks>
- </member><member name="M:NTHLibrary.VariousExtensions.Assign``1(``0@,``0)">
- <summary>
- Assigns the given object to the original object and returns the new object
- </summary>
- <typeparam name="TSource">Generic Type</typeparam>
- <param name="oldVal">original object</param>
- <param name="newVal">new object</param>
- <returns>new value of original object</returns>
- <remarks></remarks>
- <example>
- <code lang="VB">
- Dim i As Integer = 1
- Dim j As Integer = 2
- If i.Assign(j) = 2 Then
- DoSomething()
- End If
- Dim s As New IO.StreamReader("myfile")
- Dim l As String = String.Empty
- While l.Assign(s.ReadLine).Length > 0
- ' that means we can assign AND check in ONE simple instruction!
- End While
- </code>
- </example>
- </member><member name="M:NTHLibrary.VariousExtensions.Assign``1(``0@,``0,System.Predicate{``0})">
- <summary>
- Assigns the given object to the original object if <c>OnCondition()</c> returns <c>true</c> and returns the new object
- </summary>
- <typeparam name="TSource">Generic Type</typeparam>
- <param name="oldVal">original object</param>
- <param name="newVal">new object</param>
- <param name="OnCondition">A function that takes a single parameter of type <c>TSource</c> and returns a boolean</param>
- <returns>new value of original object</returns>
- <remarks></remarks>
- </member><member name="M:NTHLibrary.VariousExtensions.Swap``1(``0@,``0@)">
- <summary>
- Swaps the instance with the given object of the same type
- </summary>
- <typeparam name="TSource">generic type</typeparam>
- <param name="a">first object</param>
- <param name="b">second object</param>
- <returns>new value of instance</returns>
- <remarks>Swapping two values or objects isn't nuclear science, though it
- makes sense to have a handy little function that deals with it</remarks>
- </member><member name="M:NTHLibrary.VariousExtensions.IfNothing``1(``0@,``0)">
- <summary>
- Returns a defined value if the instance object is nothing (null in C#)
- </summary>
- <typeparam name="T">generic type</typeparam>
- <param name="o">instance object of type T</param>
- <param name="value">object of type T to return if o is nothing</param>
- <returns>o otherwise value if o is nothing</returns>
- <remarks>This is a kind of a shortcut function to avoid constructions like
- <code lang="VB">If Something Is Nothing Then Something = SomethingElse</code>
- Might be helpfull esp. in methods with optional parameters that default to nothing
- but have to be set to an instance inside the method</remarks>
- <code lang="VB">foo()</code>
- </member><member name="T:NTHLibrary.VariousExtensions">
- <summary>
- All extensions that did not fit somewhere else ;)
- </summary>
- <remarks>tOdO</remarks>
- </member><member name="T:NTHLibrary.PseudoRNG.NamespaceDoc">
- <summary>
- Everything that has to do with Pseudo Random Number Generators: PRNG
- </summary>
- <remarks>tOdO</remarks>
- </member><member name="M:NTHLibrary.PseudoRNG.IRandom.Next">
- <summary>
- Returns a nonnegative random number.
- </summary>
- <returns>A 32-bit signed integer greater than or equal to zero and less than <c>system.int32.maxvalue</c></returns>
- </member><member name="M:NTHLibrary.PseudoRNG.IRandom.Next(System.Int32)">
- <summary>
- Returns a nonnegative random number less than the specified maximum.
- </summary>
- <param name="maxValue">The exclusive upper bound of the random number to be generated. maxValue must be greater than or equal to zero. </param>
- <returns>A 32-bit signed integer greater than or equal to zero, and less than maxValue; that is, the range of return values ordinarily includes zero but not maxValue. However, if maxValue equals zero, maxValue is returned.</returns>
- </member><member name="M:NTHLibrary.PseudoRNG.IRandom.Next(System.Int32,System.Int32)">
- <summary>
- Returns a random number within a specified range.
- </summary>
- <param name="minValue">The inclusive lower bound of the random number returned.</param>
- <param name="maxValue">The exclusive upper bound of the random number returned. maxValue must be greater than or equal to minValue.</param>
- <returns>A 32-bit signed integer greater than or equal to minValue and less than maxValue; that is, the range of return values includes minValue but not maxValue. If minValue equals maxValue, minValue is returned.</returns>
- </member><member name="M:NTHLibrary.PseudoRNG.IRandom.NextBytes(System.Byte[])">
- <summary>
- Fills the elements of a specified array of bytes with random numbers.
- </summary>
- <param name="buffer">An array of bytes to contain random numbers.</param>
- </member><member name="M:NTHLibrary.PseudoRNG.IRandom.NextDouble">
- <summary>
- Returns a random number between 0.0 and 1.0.
- </summary>
- <returns>
- A double-precision floating point number greater than or equal to 0.0, and less than 1.0.
- </returns>
- </member><member name="M:NTHLibrary.PseudoRNG.IRandom.NextDoubleEx">
- <summary>
- Returns a random number between 0.0 and 1.0.
- </summary>
- <returns>
- A double-precision floating point number greater than or equal to 0.0, and less than 1.0.
- </returns>
- <remarks>This Method uses a more sophistacted way to generate a Double</remarks>
- </member><member name="M:NTHLibrary.PseudoRNG.IRandom.Warmup">
- <summary>
- tOdO
- </summary>
- <remarks>
- Some PRNG need to "warm up" before they deliver good and/or reliable values. Warming up
- in this case means to run a certain number of rounds and discarding the results.
- </remarks>
- </member><member name="T:NTHLibrary.PseudoRNG.IRandom">
- <summary>
- The IRandom interface.
- </summary>
- <remarks>tOdO</remarks>
- </member><member name="M:NTHLibrary.PseudoRNG.SystemDefault.Next">
- <inheritdoc/>
- <threadsafety static="true" instance="true"></threadsafety>
- </member><member name="M:NTHLibrary.PseudoRNG.SystemDefault.Next(System.Int32)">
- <inheritdoc/>
- </member><member name="M:NTHLibrary.PseudoRNG.SystemDefault.Next(System.Int32,System.Int32)">
- <inheritdoc/>
- </member><member name="M:NTHLibrary.PseudoRNG.SystemDefault.NextDouble">
- <inheritdoc/>
- </member><member name="M:NTHLibrary.PseudoRNG.SystemDefault.NextDoubleEx">
- <inheritdoc/>
- </member><member name="M:NTHLibrary.PseudoRNG.SystemDefault.NextBytes(System.Byte[])">
- <inheritdoc/>
- </member><member name="M:NTHLibrary.PseudoRNG.SystemDefault.Warmup">
- <inheritdoc/>
- </member><member name="T:NTHLibrary.PseudoRNG.SystemDefault">
- <summary>
- This class uses the system's default implementation of the PRNG
- </summary>
- <remarks>Internally a new instance of <c>System.Random</c> is used for any thread, thus making calls to methods threadsafe</remarks>
- </member><member name="P:NTHLibrary.My.Resources.Resources.ResourceManager">
- <summary>
- Returns the cached ResourceManager instance used by this class.
- </summary>
- </member><member name="P:NTHLibrary.My.Resources.Resources.Culture">
- <summary>
- Overrides the current thread's CurrentUICulture property for all
- resource lookups using this strongly typed resource class.
- </summary>
- </member><member name="T:NTHLibrary.My.Resources.Resources">
- <summary>
- A strongly-typed resource class, for looking up localized strings, etc.
- </summary>
- </member><member name="M:NTHLibrary.ProcessExtensions.GetOwner(System.Diagnostics.Process)">
- <summary>
- Determines the owner of a certain process using WMI
- </summary>
- <param name="p">The process of which the owner should be determined</param>
- <returns>Ownername (including domain) as string</returns>
- <remarks>Original C# code: "http://stackoverflow.com/questions/777548/how-do-i-determine-the-owner-of-a-process-in-c"</remarks>
- </member><member name="M:NTHLibrary.IEnumerableExtensions.Random``1(System.Collections.Generic.IEnumerable{``0},System.Int32)">
- <summary>
- Returns an IEnumerable with <c>num</c> objects of <c>source</c> in random order
- </summary>
- <typeparam name="TSource">Generic type</typeparam>
- <param name="source">IEnumerable that contains the objects.</param>
- <param name="num">Number of objects to choose from source.</param>
- <returns>IEnumerable(Of TSource) in random order.</returns>
- <remarks></remarks>
- <threadsafety>A call to this method is threadsafe.</threadsafety>
- </member><member name="M:NTHLibrary.IEnumerableExtensions.Random``1(System.Collections.Generic.IEnumerable{``0},System.Int32,NTHLibrary.PseudoRNG.IRandom)">
- <summary>
- Returns an IEnumerable with <c>num</c> objects of <c>source</c> in random order.
- <c>rnd.Next()</c> is used to create the ordering.
- </summary>
- <typeparam name="TSource">Generic type</typeparam>
- <param name="source">IEnumerable that contains the objects.</param>
- <param name="num">Number of objects to choose from source.</param>
- <returns>IEnumerable(Of TSource) in random order.</returns>
- <remarks></remarks>
- <threadsafety>A call to this method is threadsafe, if <c>rnd.Next() is threadsafe.</c></threadsafety>
- </member><member name="M:NTHLibrary.IEnumerableExtensions.Random``1(System.Collections.Generic.IEnumerable{``0})">
- <summary>
- Returns an IEnumerable with all objects of <c>source</c> in random order
- </summary>
- <typeparam name="TSource">Generic type</typeparam>
- <param name="source">IEnumerable that contains the objects.</param>
- <returns>IEnumerable(Of TSource) in random order.</returns>
- <remarks></remarks>
- <threadsafety>A call to this method is threadsafe.</threadsafety>
- </member><member name="M:NTHLibrary.IEnumerableExtensions.RandomOrDefault``1(System.Collections.Generic.IEnumerable{``0})">
- <summary>
- Returns a random element of <c>source</c> or the default, if <c>source</c> is empty
- </summary>
- <typeparam name="TSource">Generic type</typeparam>
- <param name="source">IEnumerable that contains the objects.</param>
- <returns>A random element of <c>source</c></returns>
- <remarks></remarks>
- <threadsafety>A call to this method is threadsafe.</threadsafety>
- </member><member name="M:NTHLibrary.IEnumerableExtensions.Shuffle``1(System.Collections.Generic.IEnumerable{``0}@)">
- <summary>
- not implemented yet
- </summary>
- <typeparam name="TSource">Generic type</typeparam>
- <param name="source">IEnumerable that contains the objects.</param>
- <remarks>not implemented yet -> should do the fisher yates shuffle in place</remarks>
- </member><member name="M:NTHLibrary.IEnumerableExtensions.Backup``1(System.Collections.Generic.ICollection{``0},System.IO.Stream,System.Predicate{``0})">
- <summary>
- Backups the items of an <c>ICollection</c> to a <c>Stream</c>
- </summary>
- <typeparam name="TSource">Generic Type</typeparam>
- <param name="source">The ICollection that contains the items to backup</param>
- <param name="strm">Stream to store the items</param>
- <param name="OnCondition">Optional. If set, can be used to limit the items to be
- backuped to those that match the given condition function</param>
- <returns>The number of items backuped.</returns>
- <remarks>?</remarks>
- </member><member name="M:NTHLibrary.IEnumerableExtensions.Backup``1(System.Collections.Generic.ICollection{``0},System.Byte[]@,System.Predicate{``0})">
- <inheritdoc cref="!:Backup(Of TSource)(ICollection(Of TSource), IO.Stream, Predicate(Of TSource)"/>
- <summary>
- Backups the items of an <c>ICollection</c> to a buffer
- </summary>
- <param name="buf">A buffer of Byte that takes the backuped items.</param>
- <remarks>?</remarks>
- </member><member name="T:NTHLibrary.IEnumerableExtensions">
- <summary>
- Extensions for IENumerable
- </summary>
- <remarks></remarks>
- </member>
- </members>
- </doc>
Das ist zwar nicht gerade übersichtlich, aber aussageKRÄFTIGER als ein reines Klassendiagramm ist es allemal ...