InABox.Core.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <?xml version="1.0"?>
  2. <doc>
  3. <assembly>
  4. <name>InABox.Core</name>
  5. </assembly>
  6. <members>
  7. <member name="T:InABox.Core.BaseObject">
  8. <summary>
  9. Observable object with INotifyPropertyChanged implemented
  10. </summary>
  11. </member>
  12. <member name="M:InABox.Core.CoreUtils.GetChildren``1(System.Object)">
  13. <summary>
  14. Get all the child properties of an object that match a given type
  15. </summary>
  16. <typeparam name="T">The class of property to search for</typeparam>
  17. <param name="parent">The object to search</param>
  18. <returns>A list of the objects found</returns>
  19. </member>
  20. <member name="M:InABox.Core.CoreUtils.GetCollectionsOfType``1(System.Object)">
  21. <summary>
  22. Get all list properties of an object that are collections of a given type
  23. </summary>
  24. <typeparam name="T">The class of child object to search for</typeparam>
  25. <param name="parent">The object to search</param>
  26. <returns>A list of the collections found</returns>
  27. </member>
  28. <member name="M:InABox.Core.CoreUtils.GetDefault(System.Type)">
  29. <summary>
  30. [ <c>public static object GetDefault(this Type type)</c> ]
  31. <para></para>
  32. Retrieves the default value for a given Type
  33. </summary>
  34. <param name="type">The Type for which to get the default value</param>
  35. <returns>The default value for
  36. <paramref name="type"/>
  37. </returns>
  38. <remarks>
  39. If a null Type, a reference Type, or a System.Void Type is supplied, this method always returns null. If
  40. a value type
  41. is supplied which is not publicly visible or which contains generic parameters, this method will fail
  42. with an
  43. exception.
  44. </remarks>
  45. <example>
  46. To use this method in its native, non-extension form, make a call like:
  47. <code>
  48. object Default = DefaultValue.GetDefault(someType);
  49. </code>
  50. To use this method in its Type-extension form, make a call like:
  51. <code>
  52. object Default = someType.GetDefault();
  53. </code>
  54. </example>
  55. <seealso cref="M:InABox.Core.CoreUtils.GetDefault``1"/>
  56. </member>
  57. <member name="M:InABox.Core.CoreUtils.GetDefault``1">
  58. <summary>
  59. [ <c>public static T GetDefault&lt; T &gt;()</c> ]
  60. <para></para>
  61. Retrieves the default value for a given Type
  62. </summary>
  63. <typeparam name="T">The Type for which to get the default value</typeparam>
  64. <returns>The default value for Type T</returns>
  65. <remarks>
  66. If a reference Type or a System.Void Type is supplied, this method always returns null. If a value type
  67. is supplied which is not publicly visible or which contains generic parameters, this method will fail
  68. with an
  69. exception.
  70. </remarks>
  71. <seealso cref="M:InABox.Core.CoreUtils.GetDefault(System.Type)"/>
  72. </member>
  73. <member name="M:InABox.Core.CoreUtils.IsDefault(System.Type,System.Object)">
  74. <summary>
  75. [ <c>public static bool IsObjectSetToDefault(this Type ObjectType, object ObjectValue)</c> ]
  76. <para></para>
  77. Reports whether a value of type T (or a null reference of type T) contains the default value for that
  78. Type
  79. </summary>
  80. <remarks>
  81. Reports whether the object is empty or unitialized for a reference type or nullable value type (i.e. is
  82. null) or
  83. whether the object contains a default value for a non-nullable value type (i.e. int = 0, bool = false,
  84. etc.)
  85. <para></para>
  86. NOTE: For non-nullable value types, this method introduces a boxing/unboxing performance penalty.
  87. </remarks>
  88. <param name="ObjectType">Type of the object to test</param>
  89. <param name="ObjectValue">The object value to test, or null for a reference Type or nullable value Type
  90. </param>
  91. <returns>
  92. true = The object contains the default value for its Type.
  93. <para></para>
  94. false = The object has been changed from its default value.
  95. </returns>
  96. </member>
  97. <member name="M:InABox.Core.CoreUtils.Clone``1(``0,``0)">
  98. <summary>
  99. Get the deep clone of an object.
  100. </summary>
  101. <typeparam name="T">The type of the obj.</typeparam>
  102. <param name="from">It is the object used to deep clone.</param>
  103. <returns>Return the deep clone.</returns>
  104. </member>
  105. <member name="M:InABox.Core.CoreUtils.DoClone(System.Object,System.Object)">
  106. <summary>
  107. The method implements deep clone using reflection.
  108. </summary>
  109. <param name="from">It is the object used to deep clone.</param>
  110. <returns>Return the deep clone.</returns>
  111. </member>
  112. <member name="M:InABox.Core.CoreUtils.CompareValues(System.String,System.Object,System.Object,System.Collections.Generic.List{System.Tuple{System.String,System.Object,System.Object}})">
  113. <summary>
  114. Compares two values and returns if they are the same.
  115. </summary>
  116. </member>
  117. <member name="T:InABox.Core.Crc32">
  118. <summary>
  119. Implements a 32-bit CRC hash algorithm compatible with Zip etc.
  120. </summary>
  121. <remarks>
  122. Crc32 should only be used for backward compatibility with older file formats
  123. and algorithms. It is not secure enough for new applications.
  124. If you need to call multiple times for the same data either use the HashAlgorithm
  125. interface or remember that the result of one Compute call needs to be ~ (XOR) before
  126. being passed in as the seed for the next Compute call.
  127. </remarks>
  128. </member>
  129. <member name="M:InABox.Core.ObservableDictionary`2.#ctor">
  130. <summary>
  131. Initializes an instance of the ObservableConcurrentDictionary class.
  132. </summary>
  133. </member>
  134. <member name="E:InABox.Core.ObservableDictionary`2.CollectionChanged">
  135. <summary>Event raised when the collection changes.</summary>
  136. </member>
  137. <member name="E:InABox.Core.ObservableDictionary`2.PropertyChanged">
  138. <summary>Event raised when a property on the collection changes.</summary>
  139. </member>
  140. <member name="M:InABox.Core.ObservableDictionary`2.NotifyObserversOfChange">
  141. <summary>
  142. Notifies observers of CollectionChanged or PropertyChanged of an update to the dictionary.
  143. </summary>
  144. </member>
  145. <member name="M:InABox.Core.ObservableDictionary`2.TryAddWithNotification(System.Collections.Generic.KeyValuePair{`0,`1})">
  146. <summary>Attempts to add an item to the dictionary, notifying observers of any changes.</summary>
  147. <param name="item">The item to be added.</param>
  148. <returns>Whether the add was successful.</returns>
  149. </member>
  150. <member name="M:InABox.Core.ObservableDictionary`2.TryAddWithNotification(`0,`1)">
  151. <summary>Attempts to add an item to the dictionary, notifying observers of any changes.</summary>
  152. <param name="key">The key of the item to be added.</param>
  153. <param name="value">The value of the item to be added.</param>
  154. <returns>Whether the add was successful.</returns>
  155. </member>
  156. <member name="M:InABox.Core.ObservableDictionary`2.TryRemoveWithNotification(`0,`1@)">
  157. <summary>Attempts to remove an item from the dictionary, notifying observers of any changes.</summary>
  158. <param name="key">The key of the item to be removed.</param>
  159. <param name="value">The value of the item removed.</param>
  160. <returns>Whether the removal was successful.</returns>
  161. </member>
  162. <member name="M:InABox.Core.ObservableDictionary`2.UpdateWithNotification(`0,`1)">
  163. <summary>Attempts to add or update an item in the dictionary, notifying observers of any changes.</summary>
  164. <param name="key">The key of the item to be updated.</param>
  165. <param name="value">The new value to set for the item.</param>
  166. <returns>Whether the update was successful.</returns>
  167. </member>
  168. <member name="M:InABox.Core.PredicateExtensions.Begin``1(System.Boolean)">
  169. <summary>
  170. Begin an expression chain
  171. </summary>
  172. <typeparam name="T"></typeparam>
  173. <param name="value">Default return value if the chanin is ended early</param>
  174. <returns>A lambda expression stub</returns>
  175. </member>
  176. <member name="M:InABox.Core.TaskUtils.WaitWhile(System.Func{System.Boolean},System.Int32,System.Int32)">
  177. <summary>
  178. Blocks while condition is true or timeout occurs.
  179. </summary>
  180. <param name="condition">The condition that will perpetuate the block.</param>
  181. <param name="frequency">The frequency at which the condition will be check, in milliseconds.</param>
  182. <param name="timeout">Timeout in milliseconds.</param>
  183. <exception cref="T:System.TimeoutException"></exception>
  184. <returns></returns>
  185. </member>
  186. <member name="M:InABox.Core.TaskUtils.WaitUntil(System.Func{System.Boolean},System.Int32,System.Int32)">
  187. <summary>
  188. Blocks until condition is true or timeout occurs.
  189. </summary>
  190. <param name="condition">The break condition.</param>
  191. <param name="frequency">The frequency at which the condition will be checked.</param>
  192. <param name="timeout">The timeout in milliseconds.</param>
  193. <returns></returns>
  194. </member>
  195. <member name="T:InABox.Core.TimeSpanFormatter">
  196. <summary>
  197. Custom string formatter for TimeSpan that allows easy retrieval of Total segments.
  198. </summary>
  199. <example>
  200. TimeSpan myTimeSpan = new TimeSpan(27, 13, 5);
  201. string.Format("{0:th,###}h {0:mm}m {0:ss}s", myTimeSpan) -> "27h 13m 05s"
  202. string.Format("{0:TH}", myTimeSpan) -> "27.2180555555556"
  203. NOTE: myTimeSpan.ToString("TH") does not work. See Remarks.
  204. </example>
  205. <remarks>
  206. Due to a quirk of .NET Framework (up through version 4.5.1),
  207. <code>TimeSpan.ToString(format, new TimeSpanFormatter())</code>
  208. will not work; it will always call
  209. TimeSpanFormat.FormatCustomized() which takes a DateTimeFormatInfo rather than an
  210. IFormatProvider/ICustomFormatter. DateTimeFormatInfo, unfortunately, is a sealed class.
  211. </remarks>
  212. </member>
  213. <member name="F:InABox.Core.TimeSpanFormatter.DefaultFormat">
  214. <summary>
  215. Used to create a wrapper format string with the specified format.
  216. </summary>
  217. </member>
  218. <member name="M:InABox.Core.TimeSpanFormatter.GetFormat(System.Type)">
  219. <remarks>
  220. IFormatProvider.GetFormat implementation.
  221. </remarks>
  222. </member>
  223. <member name="M:InABox.Core.TimeSpanFormatter.Format(System.String,System.Object,System.IFormatProvider)">
  224. <summary>
  225. Determines whether the specified format is looking for a total, and formats it accordingly.
  226. If not, returns the default format for the given <para>format</para> of a TimeSpan.
  227. </summary>
  228. <returns>
  229. The formatted string for the given TimeSpan.
  230. </returns>
  231. <remarks>
  232. ICustomFormatter.Format implementation.
  233. </remarks>
  234. </member>
  235. <member name="M:InABox.Core.TimeSpanFormatter.GetDefault(System.String,System.Object)">
  236. <summary>
  237. Returns the formatted value when we don't know what to do with their specified format.
  238. </summary>
  239. </member>
  240. <member name="M:InABox.Core.XmlHelperExtentions.LoadString(System.Xml.XmlDocument,System.String,System.Text.Encoding)">
  241. <summary>
  242. Loads a string through .Load() instead of .LoadXml()
  243. This prevents character encoding problems.
  244. </summary>
  245. <param name="xmlDocument"></param>
  246. <param name="xmlString"></param>
  247. <param name="encoding"></param>
  248. </member>
  249. </members>
  250. </doc>