...
\n" + "description": "..
\n" }, { "id": "rsr", @@ -2966,7 +2966,7 @@ } ] }, - "description": "\n"
+ "description": "~~
\n" } ], "return": { diff --git a/test/docfx.Snapshot.Tests/SamplesTest.Seed/index.verified.json b/test/docfx.Snapshot.Tests/SamplesTest.Seed/index.verified.json index d1078f8c90b..1b48f128337 100644 --- a/test/docfx.Snapshot.Tests/SamplesTest.Seed/index.verified.json +++ b/test/docfx.Snapshot.Tests/SamplesTest.Seed/index.verified.json @@ -142,7 +142,7 @@ "api/CatLibrary.Cat-2.html": { "href": "api/CatLibrary.Cat-2.html", "title": "Class Catlsr Cat<T, K>...
+..
rsr int
+ ~~
T.
+
+```csharp
+void DoNothingvar range = new Range<int> { Min = 0, Max = 10 };
+
+### Issue4017()
+
+```csharp
+public void Issue4017()
+```
+
+#### Examples
+
+public void HookMessageDeleted(BaseSocketClient client)
+{
+ client.MessageDeleted += HandleMessageDelete;
+}
+
+public Task HandleMessageDelete(Cacheable<IMessage, ulong> cachedMessage, ISocketMessageChannel channel)
+{
+ // check if the message exists in cache; if not, we cannot report what was removed
+ if (!cachedMessage.HasValue) return;
+ var message = cachedMessage.Value;
+ Console.WriteLine($"A message ({message.Id}) from {message.Author} was removed from the channel {channel.Name} ({channel.Id}):"
+ + Environment.NewLine
+ + message.Content);
+ return Task.CompletedTask;
+}
+
+#### Remarks
+
+void Update()
+{
+ myClass.Execute();
+}
+
+### Issue4392()
+
+```csharp
+public void Issue4392()
+```
+
+#### Remarks
+
+@"\\?\" `@"\\?\"`
+
+### Issue7484()
+
+```csharp
+public void Issue7484()
+```
+
+#### Remarks
+
+There's really no reason to not believe that this class can test things.
+| Term | Description |
|---|---|
| A Term | A Description |
| Bee Term | Bee Description |
Here's main class of this Demo.
+You can see mostly type of article within this class and you for more detail, please see the remarks.
+ +this class is a template class. It has two Generic parameter. they are: T and K.
The extension method of this class can refer to
Here's example of how to create an instance of this class. As T is limited with class and K is limited with struct.
var a = new Cat(object, int)();
+int catNumber = new int();
+unsafe
+{
+ a.GetFeetLength(catNumber);
+}
+As you see, here we bring in pointer so we need to add unsafe keyword.
Here's all the content you can see in this class.
+ +## Constructors + +### Cat() + +Default constructor. + +```csharp +public Cat() +``` + +### Cat(T) + +Constructor with one generic parameter. + +```csharp +public Cat(T ownType) +``` + +#### Parameters + +`ownType` T + +This parameter type defined by class. + +### Cat(string, out int, string, bool) + +It's a complex constructor. The parameter will have some attributes. + +```csharp +public Cat(string nickName, out int age, string realName, bool isHealthy) +``` + +#### Parameters + +`nickName` [string](https://learn.microsoft.com/dotnet/api/system.string) + +it's string type. + +`age` [int](https://learn.microsoft.com/dotnet/api/system.int32) + +It's an out and ref parameter. + +`realName` [string](https://learn.microsoft.com/dotnet/api/system.string) + +It's an out paramter. + +`isHealthy` [bool](https://learn.microsoft.com/dotnet/api/system.boolean) + +It's an in parameter. + +## Fields + +### isHealthy + +Field with attribute. + +```csharp +[ContextStatic] +[NonSerialized] +public bool isHealthy +``` + +Field Value + +[bool](https://learn.microsoft.com/dotnet/api/system.boolean) + +## Properties + +### Age + +Hint cat's age. + +```csharp +protected int Age { get; set; } +``` + +Property Value + +[int](https://learn.microsoft.com/dotnet/api/system.int32) + +### Name + +EII property. + +```csharp +public string Name { get; } +``` + +Property Value + +[string](https://learn.microsoft.com/dotnet/api/system.string) + +### this[string] + +This is index property of Cat. You can see that the visibility is different betweenget and set method.
+
+```csharp
+public int this[string a] { protected get; set; }
+```
+
+Property Value
+
+[int](https://learn.microsoft.com/dotnet/api/system.int32)
+
+## Methods
+
+### CalculateFood(DateTime)
+
+It's a method with complex return type.
+
+```csharp
+public DictionaryObject.Equals(object obj).
+
+```csharp
+public override bool Equals(object obj)
+```
+
+#### Parameters
+
+`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)
+
+Can pass any class type.
+
+#### Returns
+
+[bool](https://learn.microsoft.com/dotnet/api/system.boolean)
+
+The return value tell you whehter the compare operation is successful.
+
+### GetTailLength(int*, params object[])
+
+It's an unsafe method.
+As you see, catName is a pointer, so we need to add unsafe keyword.
+
+```csharp
+public long GetTailLength(int* catName, params object[] parameters)
+```
+
+#### Parameters
+
+`catName` [int](https://learn.microsoft.com/dotnet/api/system.int32)*
+
+Thie represent for cat name length.
+
+`parameters` [object](https://learn.microsoft.com/dotnet/api/system.object)[]
+
+Optional parameters.
+
+#### Returns
+
+[long](https://learn.microsoft.com/dotnet/api/system.int64)
+
+Return cat tail's length.
+
+### Jump(T, K, ref bool)
+
+This method have attribute above it.
+
+```csharp
+[Conditional("Debug")]
+public void Jump(T ownType, K anotherOwnType, ref bool cheat)
+```
+
+#### Parameters
+
+`ownType` T
+
+Type come from class define.
+
+`anotherOwnType` K
+
+Type come from class define.
+
+`cheat` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)
+
+Hint whether this cat has cheat mode.
+
+#### Exceptions
+
+[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)
+
+This is an argument exception
+
+## Events
+
+### ownEat
+
+Eat event of this cat
+
+```csharp
+public event EventHandler ownEat
+```
+
+Event Type
+
+[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler)
+
+## Operators
+
+### operator +(CatIt means this cat can evolve to change to Tom. Tom and Jerry.
+ +```csharp +public static explicit operator Tom(CatThis class must be public and static.
+Also it shouldn't be a geneic class
+ +```csharp +public static class ICatExtension +``` + +#### Inheritance + +[object](https://learn.microsoft.com/dotnet/api/system.object) ← +[ICatExtension](CatLibrary.ICatExtension.md) + +#### Inherited Members + +[object.Equals(object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)), +[object.Equals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)), +[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), +[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), +[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), +[object.ReferenceEquals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), +[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring) + +## Methods + +### Play(ICat, ColorType) + +Extension method to let cat play + +```csharp +public static void Play(this ICat icat, ContainersRefType.ColorType toy) +``` + +#### Parameters + +`icat` [ICat](CatLibrary.ICat.md) + +Cat + +`toy` [ContainersRefType](CatLibrary.Core.ContainersRefType.md).[ColorType](CatLibrary.Core.ContainersRefType.ColorType.md) + +Something to play + +### Sleep(ICat, long) + +Extension method hint that how long the cat can sleep. + +```csharp +public static void Sleep(this ICat icat, long hours) +``` + +#### Parameters + +`icat` [ICat](CatLibrary.ICat.md) + +The type will be extended. + +`hours` [long](https://learn.microsoft.com/dotnet/api/system.int64) + +The length of sleep. + diff --git a/test/docfx.Snapshot.Tests/SamplesTest.SeedMarkdown/CatLibrary.MRefDelegate`3.verified.md b/test/docfx.Snapshot.Tests/SamplesTest.SeedMarkdown/CatLibrary.MRefDelegate`3.verified.md new file mode 100644 index 00000000000..1df0eac671c --- /dev/null +++ b/test/docfx.Snapshot.Tests/SamplesTest.SeedMarkdown/CatLibrary.MRefDelegate`3.verified.md @@ -0,0 +1,39 @@ +# Delegate MRefDelegate + +__Namespace:__ [CatLibrary](CatLibrary.md) +__Assembly:__ CatLibrary.dll + +Generic delegate with many constrains. + +```csharp +public delegate void MRefDelegate+Red/Blue/Yellow can become all color you want. +
+