|
28 | 28 | namespace Samples |
29 | 29 | { |
30 | 30 | /// <summary> |
31 | | - /// A sample to describe polymorphism. |
| 31 | + /// A sample to describe polymorphism. |
32 | 32 | /// </summary> |
33 | 33 | [TestFixture] |
34 | 34 | public class PolymorphismSample |
35 | 35 | { |
36 | 36 | /// <summary> |
37 | | - /// Demonstrates basic polymorphism. |
| 37 | + /// Demonstrates basic polymorphism. |
38 | 38 | /// </summary> |
39 | 39 | [Test] |
40 | 40 | public void Polymorphism() |
@@ -78,7 +78,7 @@ public void Polymorphism() |
78 | 78 | } |
79 | 79 |
|
80 | 80 | /// <summary> |
81 | | - /// Demonstrates polymorphism without enclosing type and its attributes. |
| 81 | + /// Demonstrates polymorphism without enclosing type and its attributes. |
82 | 82 | /// </summary> |
83 | 83 | [Test] |
84 | 84 | public void DirectPolymorphism() |
@@ -153,40 +153,41 @@ public class PolymorphicHolder |
153 | 153 | } |
154 | 154 |
|
155 | 155 | /// <summary> |
156 | | - /// Sample base type. |
| 156 | + /// Sample base type. |
157 | 157 | /// </summary> |
158 | 158 | public interface IFileSystemObject |
159 | 159 | { |
160 | 160 | string Path { get; set; } |
161 | 161 | } |
162 | 162 |
|
163 | 163 | /// <summary> |
164 | | - /// Sample derived type 1. |
| 164 | + /// Sample derived type 1. |
165 | 165 | /// </summary> |
166 | 166 | public class FileObject : IFileSystemObject |
167 | 167 | { |
168 | 168 | public string Path { get; set; } |
169 | 169 | } |
170 | 170 |
|
171 | 171 | /// <summary> |
172 | | - /// Sample derived type 2. |
| 172 | + /// Sample derived type 2. |
173 | 173 | /// </summary> |
174 | 174 | public class DirectoryObject : IFileSystemObject |
175 | 175 | { |
176 | 176 | public string Path { get; set; } |
177 | 177 | } |
178 | 178 |
|
179 | 179 | /// <summary> |
180 | | - /// Sample type verifier. |
| 180 | + /// Sample type verifier. |
181 | 181 | /// </summary> |
182 | 182 | public static class SampleTypeVerifier |
183 | 183 | { |
184 | | - /// <summary> |
185 | | - /// Sample type verifier. The signature of this method is important. |
186 | | - /// </summary> |
187 | | - /// <param name="context">The context which has information of deserializing type.</param> |
188 | | - /// <returns>True for accepting; otherwise, false.</returns> |
189 | | - public static bool Verify( PolymorphicTypeVerificationContext context ) |
| 184 | + /// <summary> |
| 185 | + /// Sample type verifier. |
| 186 | + /// </summary> |
| 187 | + /// <remarks>The signature of this method is important.</remarks> |
| 188 | + /// <param name="context">The context which has information of deserializing type.</param> |
| 189 | + /// <returns>True for accepting; otherwise, false.</returns> |
| 190 | + public static bool Verify( PolymorphicTypeVerificationContext context ) |
190 | 191 | { |
191 | 192 | // You should put type verification logic to prevent unexpected code execution via specified type. |
192 | 193 | // 1. Check context.LoadingAssemblyName here to verify the assembly is known for you. |
|
0 commit comments