Permalink
Browse files

PCL introduced. No more platform-specific builds

  • Loading branch information...
activa committed Dec 9, 2013
1 parent cef98c6 commit 953f5ee10002cbead49ccad011976c770a18a622
Showing with 14,989 additions and 15,298 deletions.
  1. +0 −58 Library/EasyDictionary.cs
  2. +0 −55 Library/Json/Json.cs
  3. +53 −53 Library/{ → Source}/Base64Serializer.cs
  4. +62 −62 Library/{ → Source}/BinaryHelper.cs
  5. +53 −53 Library/{ → Source}/BinarySerializer.cs
  6. +315 −315 Library/{ → Source}/Cache/SmartCache.cs
  7. +64 −64 Library/{ → Source}/CoreExtensions.cs
  8. +34 −34 Library/{ → Source}/EasyConfig/Attributes/ConfigIgnoreAttribute.cs
  9. +40 −40 Library/{ → Source}/EasyConfig/Attributes/ConfigKeyAttribute.cs
  10. +41 −41 Library/{ → Source}/EasyConfig/Attributes/ConfigObjectAttribute.cs
  11. +234 −234 Library/{ → Source}/EasyConfig/ConfigManager.cs
  12. +33 −33 Library/{ → Source}/EasyConfig/IConfigObject.cs
  13. +39 −39 Library/{ → Source}/EasyConfig/IConfigurationProvider.cs
  14. +73 −73 Library/{ → Source}/EasyConfig/Providers/ConfigurationProviderAppConfig.cs
  15. +102 −102 Library/{ → Source}/EasyConfig/Providers/ConfigurationProviderXmlConfig.cs
  16. 0 Library/{ → Source}/FileIO.cs
  17. +305 −305 Library/{ → Source}/Json/JSONParser.cs
  18. +24 −5 Library/{ → Source}/Json/JsonObject.cs
  19. +228 −228 Library/{ → Source}/Json/JsonSerializer.cs
  20. +51 −51 Library/{ → Source}/Json/Tokenizer/JSONTokenizer.cs
  21. +37 −37 Library/{ → Source}/Json/Tokenizer/Tokens/ArrayEndTokenMatcher.cs
  22. +37 −37 Library/{ → Source}/Json/Tokenizer/Tokens/ArrayStartTokenMatcher.cs
  23. +37 −37 Library/{ → Source}/Json/Tokenizer/Tokens/ColonTokenMatcher.cs
  24. +37 −37 Library/{ → Source}/Json/Tokenizer/Tokens/CommaTokenMatcher.cs
  25. +37 −37 Library/{ → Source}/Json/Tokenizer/Tokens/FalseTokenMatcher.cs
  26. +44 −44 Library/{ → Source}/Json/Tokenizer/Tokens/FloatTokenMatcher.cs
  27. +73 −73 Library/{ → Source}/Json/Tokenizer/Tokens/IntegerTokenMatcher.cs
  28. +117 −117 Library/{ → Source}/Json/Tokenizer/Tokens/JSONStringTokenMatcher.cs
  29. +37 −37 Library/{ → Source}/Json/Tokenizer/Tokens/NullTokenMatcher.cs
  30. +37 −37 Library/{ → Source}/Json/Tokenizer/Tokens/ObjectEndTokenMatcher.cs
  31. +37 −37 Library/{ → Source}/Json/Tokenizer/Tokens/ObjectStartTokenMatcher.cs
  32. +37 −37 Library/{ → Source}/Json/Tokenizer/Tokens/TrueTokenMatcher.cs
  33. +44 −44 Library/{ → Source}/Logger/LogLevel.cs
  34. +95 −95 Library/{ → Source}/Logger/Logger.cs
  35. +80 −80 Library/{ → Source}/Logger/LoggingProvider.cs
  36. +41 −41 Library/{ → Source}/Logger/Providers/LoggingProviderConsole.cs
  37. +177 −177 Library/{ → Source}/Logger/Providers/LoggingProviderFile.cs
  38. +34 −34 Library/{ → Source}/Mocking/ITimeProvider.cs
  39. +37 −37 Library/{ → Source}/Mocking/RealTimeProvider.cs
  40. +42 −42 Library/{ → Source}/Notifier/ISubscription.cs
  41. +65 −65 Library/{ → Source}/Notifier/Notification.cs
  42. +234 −234 Library/{ → Source}/Notifier/Notifier.cs
  43. +59 −59 Library/{ → Source}/Parser/Context/ContextFactory.cs
  44. +246 −246 Library/{ → Source}/Parser/Context/DynamicObject.cs
  45. +34 −34 Library/{ → Source}/Parser/Context/IDynamicObject.cs
  46. +54 −54 Library/{ → Source}/Parser/Context/IParserContext.cs
  47. +345 −345 Library/{ → Source}/Parser/Context/ParserContext.cs
  48. +26 −26 Library/{ → Source}/Parser/Context/ParserContextBehavior.cs
  49. +105 −105 Library/{ → Source}/Parser/Context/PropertyHelper.cs
  50. +51 −51 Library/{ → Source}/Parser/ExpressionParser/Exceptions/BadArgumentException.cs
  51. +65 −65 Library/{ → Source}/Parser/ExpressionParser/Exceptions/ExpressionEvaluationException.cs
  52. +53 −53 Library/{ → Source}/Parser/ExpressionParser/Exceptions/IllegalAssignmentException.cs
  53. +51 −51 Library/{ → Source}/Parser/ExpressionParser/Exceptions/IllegalOperandsException.cs
  54. +60 −60 Library/{ → Source}/Parser/ExpressionParser/Exceptions/LexerException.cs
  55. +51 −51 Library/{ → Source}/Parser/ExpressionParser/Exceptions/LiteralException.cs
  56. +51 −51 Library/{ → Source}/Parser/ExpressionParser/Exceptions/ParserException.cs
  57. +51 −51 Library/{ → Source}/Parser/ExpressionParser/Exceptions/UnknownPropertyException.cs
  58. +80 −80 Library/{ → Source}/Parser/ExpressionParser/Expression/Abstract/Expression.cs
  59. +63 −63 Library/{ → Source}/Parser/ExpressionParser/Expression/Abstract/ExpressionWithContext.cs
  60. +34 −34 Library/{ → Source}/Parser/ExpressionParser/Expression/AddExpression.cs
  61. +53 −53 Library/{ → Source}/Parser/ExpressionParser/Expression/AndAlsoExpression.cs
  62. +68 −68 Library/{ → Source}/Parser/ExpressionParser/Expression/AsExpression.cs
  63. +83 −83 Library/{ → Source}/Parser/ExpressionParser/Expression/AssignmentExpression.cs
  64. +349 −349 Library/{ → Source}/Parser/ExpressionParser/Expression/BinaryArithmicExpression.cs
  65. +44 −44 Library/{ → Source}/Parser/ExpressionParser/Expression/BinaryExpression.cs
  66. +60 −60 Library/{ → Source}/Parser/ExpressionParser/Expression/BitwiseComplementExpression.cs
  67. +134 −134 Library/{ → Source}/Parser/ExpressionParser/Expression/CallExpression.cs
  68. +56 −56 Library/{ → Source}/Parser/ExpressionParser/Expression/CoalesceExpression.cs
  69. +59 −59 Library/{ → Source}/Parser/ExpressionParser/Expression/ConditionalExpression.cs
  70. +60 −60 Library/{ → Source}/Parser/ExpressionParser/Expression/ConstructorExpression.cs
  71. +39 −39 Library/{ → Source}/Parser/ExpressionParser/Expression/ContainerClasses/ClassName.cs
  72. +37 −37 Library/{ → Source}/Parser/ExpressionParser/Expression/ContainerClasses/IMethodDefinition.cs
  73. +57 −57 Library/{ → Source}/Parser/ExpressionParser/Expression/ContainerClasses/InstanceMethod.cs
  74. +83 −83 Library/{ → Source}/Parser/ExpressionParser/Expression/ContainerClasses/MethodDefinition.cs
  75. +53 −53 Library/{ → Source}/Parser/ExpressionParser/Expression/ContainerClasses/StaticMethod.cs
  76. +33 −33 Library/{ → Source}/Parser/ExpressionParser/Expression/DefaultValueExpression.cs
  77. +36 −36 Library/{ → Source}/Parser/ExpressionParser/Expression/DivideExpression.cs
  78. +331 −331 Library/{ → Source}/Parser/ExpressionParser/Expression/ExpressionHelper/BinaryExpressionHelper.cs
  79. +156 −156 Library/{ → Source}/Parser/ExpressionParser/Expression/FieldExpression.cs
  80. 0 Library/{ → Source}/Parser/ExpressionParser/Expression/FunctionValueExpression.cs
  81. +128 −128 Library/{ → Source}/Parser/ExpressionParser/Expression/IndexExpression.cs
  82. +36 −36 Library/{ → Source}/Parser/ExpressionParser/Expression/Interfaces/IExpression.cs
  83. +39 −39 Library/{ → Source}/Parser/ExpressionParser/Expression/Interfaces/IExpressionWithContext.cs
  84. +72 −72 Library/{ → Source}/Parser/ExpressionParser/Expression/IsExpression.cs
  85. 0 Library/{ → Source}/Parser/ExpressionParser/Expression/Logic/ForEachExpression.cs
  86. 0 Library/{ → Source}/Parser/ExpressionParser/Expression/Logic/FunctionDefinitionExpression.cs
  87. 0 Library/{ → Source}/Parser/ExpressionParser/Expression/Logic/IfExpression.cs
  88. 0 Library/{ → Source}/Parser/ExpressionParser/Expression/Logic/InExpression.cs
  89. +34 −34 Library/{ → Source}/Parser/ExpressionParser/Expression/MultiplyExpression.cs
  90. +56 −56 Library/{ → Source}/Parser/ExpressionParser/Expression/NegationExpression.cs
  91. +53 −53 Library/{ → Source}/Parser/ExpressionParser/Expression/OrElseExpression.cs
  92. +84 −84 Library/{ → Source}/Parser/ExpressionParser/Expression/RangeExpression.cs
  93. 0 Library/{ → Source}/Parser/ExpressionParser/Expression/ReturnExpression.cs
  94. 0 Library/{ → Source}/Parser/ExpressionParser/Expression/ReturnValueExpression.cs
  95. 0 Library/{ → Source}/Parser/ExpressionParser/Expression/SequenceExpression.cs
  96. +34 −34 Library/{ → Source}/Parser/ExpressionParser/Expression/SubtractExpression.cs
  97. +58 −58 Library/{ → Source}/Parser/ExpressionParser/Expression/TypeCastExpression.cs
  98. +52 −52 Library/{ → Source}/Parser/ExpressionParser/Expression/TypeOfExpression.cs
  99. +71 −71 Library/{ → Source}/Parser/ExpressionParser/Expression/UnaryMinusExpression.cs
  100. +79 −79 Library/{ → Source}/Parser/ExpressionParser/Expression/ValueExpression.cs
  101. +61 −61 Library/{ → Source}/Parser/ExpressionParser/Expression/VariableExpression.cs
  102. +453 −453 Library/{ → Source}/Parser/ExpressionParser/Parser/ExpressionParser.cs
  103. +35 −35 Library/{ → Source}/Parser/ExpressionParser/Parser/IValueWithType.cs
  104. +36 −36 Library/{ → Source}/Parser/ExpressionParser/Parser/OperatorAssociativity.cs
  105. +245 −245 Library/{ → Source}/Parser/ExpressionParser/Parser/RPNExpression.cs
  106. +31 −31 Library/{ → Source}/Parser/ExpressionParser/Parser/TokenEvaluator.cs
  107. +53 −53 Library/{ → Source}/Parser/ExpressionParser/Parser/TokenType.cs
  108. +61 −61 Library/{ → Source}/Parser/ExpressionParser/Parser/ValueWithType.cs
  109. +170 −170 Library/{ → Source}/Parser/ExpressionParser/Tokenizer/ExpressionToken.cs
  110. +107 −107 Library/{ → Source}/Parser/ExpressionParser/Tokenizer/ExpressionTokenMatcher.cs
  111. +76 −76 Library/{ → Source}/Parser/ExpressionParser/Tokenizer/ExpressionTokenizer.cs
  112. +40 −40 Library/{ → Source}/Parser/ExpressionParser/Tokenizer/FunctionCallToken.cs
  113. +86 −86 Library/{ → Source}/Parser/Parsers/CSharp/CSharpContext.cs
  114. +51 −51 Library/{ → Source}/Parser/Parsers/CSharp/FlexContext.cs
  115. +344 −344 Library/{ → Source}/Parser/Parsers/CSharp/Parser/CSharpEvaluator.cs
  116. +48 −48 Library/{ → Source}/Parser/Parsers/CSharp/Parser/CSharpParser.cs
  117. +87 −87 Library/{ → Source}/Parser/Parsers/CSharp/Tokenizer/CSharpTokenizer.cs
  118. +78 −78 Library/{ → Source}/Parser/Parsers/CSharp/Tokenizer/Tokens/CharLiteralMatcher.cs
  119. +113 −113 Library/{ → Source}/Parser/Parsers/CSharp/Tokenizer/Tokens/DecimalLiteralMatcher.cs
  120. +114 −114 Library/{ → Source}/Parser/Parsers/CSharp/Tokenizer/Tokens/IntegerLiteralMatcher.cs
  121. +78 −78 Library/{ → Source}/Parser/Parsers/CSharp/Tokenizer/Tokens/StringLiteralMatcher.cs
  122. +115 −115 Library/{ → Source}/Parser/Parsers/CSharp/Tokenizer/Tokens/TypeCastMatcher.cs
  123. +64 −64 Library/{ → Source}/Parser/Parsers/CSharp/Tokenizer/Tokens/VariableMatcher.cs
  124. +44 −44 Library/{ → Source}/Parser/TemplateParser/CompiledTemplate.cs
  125. +56 −56 Library/{ → Source}/Parser/TemplateParser/Exceptions/TemplateParserException.cs
  126. +50 −50 Library/{ → Source}/Parser/TemplateParser/Exceptions/TemplateParsingException.cs
  127. +47 −47 Library/{ → Source}/Parser/TemplateParser/Exceptions/TemplateRenderingException.cs
  128. 0 Library/{ → Source}/Parser/TemplateParser/Nodes/ExpressionTemplateNode.cs
  129. 0 Library/{ → Source}/Parser/TemplateParser/Nodes/ForEachTemplateNode.cs
  130. 0 Library/{ → Source}/Parser/TemplateParser/Nodes/IfTemplateNode.cs
  131. 0 Library/{ → Source}/Parser/TemplateParser/Nodes/IncludeFileTemplateNode.cs
  132. 0 Library/{ → Source}/Parser/TemplateParser/Nodes/MacroCallTemplateNode.cs
  133. 0 Library/{ → Source}/Parser/TemplateParser/Nodes/MacroDefinitionTemplateNode.cs
  134. 0 Library/{ → Source}/Parser/TemplateParser/Nodes/ParseFileTemplateNode.cs
  135. 0 Library/{ → Source}/Parser/TemplateParser/Nodes/TemplateNode.cs
  136. 0 Library/{ → Source}/Parser/TemplateParser/Nodes/TextTemplateNode.cs
  137. +35 −35 Library/{ → Source}/Parser/TemplateParser/TemplateConfigs/DoubleCurly/DoubleCurly.cs
  138. +65 −65 Library/{ → Source}/Parser/TemplateParser/TemplateConfigs/DoubleCurly/DoubleCurlyTokenizer.cs
  139. +9 −9 Library/{ → Source}/Parser/TemplateParser/TemplateConfigs/ProMesh/ProMesh.cs
  140. +57 −57 Library/{ → Source}/Parser/TemplateParser/TemplateConfigs/ProMesh/ProMeshTokenizer.cs
  141. +128 −128 Library/{ → Source}/Parser/TemplateParser/TemplateConfigs/SmartExpressionMatcher.cs
  142. +36 −36 Library/{ → Source}/Parser/TemplateParser/TemplateConfigs/Velocity/Velocity.cs
  143. +110 −110 Library/{ → Source}/Parser/TemplateParser/TemplateConfigs/Velocity/VelocityTokenizer.cs
  144. +205 −205 Library/{ → Source}/Parser/TemplateParser/TemplateConfigs/WrappedExpressionMatcher.cs
  145. +57 −57 Library/{ → Source}/Parser/TemplateParser/TemplateConfigs/Xml/Xml.cs
  146. +94 −94 Library/{ → Source}/Parser/TemplateParser/TemplateConfigs/Xml/XmlTokenizer.cs
  147. +492 −492 Library/{ → Source}/Parser/TemplateParser/TemplateParser.cs
  148. +180 −180 Library/{ → Source}/Parser/TemplateParser/TemplateParserConfig.cs
  149. +54 −54 Library/{ → Source}/Parser/TemplateParser/Tokenizer/ForeachTemplateToken.cs
  150. +120 −120 Library/{ → Source}/Parser/TemplateParser/Tokenizer/TemplateToken.cs
  151. +70 −70 Library/{ → Source}/Parser/TemplateParser/Tokenizer/TemplateTokenMatcher.cs
  152. +46 −46 Library/{ → Source}/Parser/TemplateParser/Tokenizer/TemplateTokenType.cs
  153. +70 −70 Library/{ → Source}/Parser/TemplateParser/Tokenizer/TemplateTokenizer.cs
  154. +85 −85 Library/{ → Source}/Parser/Tokenizer/BaseMatchers/AnyCharMatcher.cs
  155. +89 −89 Library/{ → Source}/Parser/Tokenizer/BaseMatchers/AnyOfMatcher.cs
  156. +77 −77 Library/{ → Source}/Parser/Tokenizer/BaseMatchers/AnyOfStringMatcher.cs
  157. +69 −69 Library/{ → Source}/Parser/Tokenizer/BaseMatchers/CharMatcher.cs
  158. +124 −124 Library/{ → Source}/Parser/Tokenizer/BaseMatchers/CompositeMatcher.cs
  159. +99 −99 Library/{ → Source}/Parser/Tokenizer/BaseMatchers/RegexMatcher.cs
  160. +70 −70 Library/{ → Source}/Parser/Tokenizer/BaseMatchers/SequenceOfAnyCharMatcher.cs
  161. +72 −72 Library/{ → Source}/Parser/Tokenizer/BaseMatchers/SequenceOfCharRangeMatcher.cs
  162. +163 −163 Library/{ → Source}/Parser/Tokenizer/BaseMatchers/StartsAndEndsWithMatcher.cs
  163. +63 −63 Library/{ → Source}/Parser/Tokenizer/BaseMatchers/StringMatcher.cs
  164. +36 −36 Library/{ → Source}/Parser/Tokenizer/BaseMatchers/WhiteSpaceMatcher.cs
  165. +87 −87 Library/{ → Source}/Parser/Tokenizer/BaseMatchers/WhiteSpacePaddedMatcher.cs
  166. +37 −37 Library/{ → Source}/Parser/Tokenizer/CharHelper.cs
  167. +52 −52 Library/{ → Source}/Parser/Tokenizer/Exceptions/TokenizerException.cs
  168. +43 −43 Library/{ → Source}/Parser/Tokenizer/Exceptions/UnknownTokenException.cs
  169. +35 −35 Library/{ → Source}/Parser/Tokenizer/ITokenMatcher.cs
  170. +35 −35 Library/{ → Source}/Parser/Tokenizer/ITokenProcessor.cs
  171. +84 −84 Library/{ → Source}/Parser/Tokenizer/Token.cs
  172. +86 −86 Library/{ → Source}/Parser/Tokenizer/TokenMatcher.cs
  173. +112 −112 Library/{ → Source}/Parser/Tokenizer/TokenPosition.cs
  174. +249 −249 Library/{ → Source}/Parser/Tokenizer/Tokenizer.cs
  175. +34 −34 Library/{ → Source}/Parser/Tokenizer/TokenizerState.cs
  176. +0 −2 Library/{ → Source}/Reflection/AutoMapper.cs
  177. 0 Library/{ → Source}/Reflection/FieldOrPropertyInfo.cs
  178. 0 Library/{ → Source}/Reflection/Inspectors/AssemblyInspector.cs
  179. +4 −4 Library/{ → Source}/Reflection/Inspectors/MemberInspector.cs
  180. 0 Library/{ → Source}/Reflection/Inspectors/PropertyInspector.cs
  181. 0 Library/{ → Source}/Reflection/Inspectors/TypeInspector.cs
  182. +1 −1 Library/{ → Source}/Reflection/LazyBinder.cs
  183. 0 Library/{ → Source}/Reflection/ReflectionExtensions.cs
  184. +131 −0 Library/Source/SafeDictionary.cs
  185. +17 −0 Library/Source/SafeStringDictionary.cs
  186. +26 −26 Library/{ → Source}/Scheduler/CyclicScheduler.cs
  187. +25 −25 Library/{ → Source}/Scheduler/MonthlyScheduler.cs
  188. +24 −24 Library/{ → Source}/Scheduler/ScheduleHistory/DefaultHistoryStore.cs
  189. +55 −55 Library/{ → Source}/Scheduler/ScheduleHistory/FileHistoryStore.cs
  190. +35 −35 Library/{ → Source}/Scheduler/ScheduleHistory/IScheduleHistoryStore.cs
  191. +38 −38 Library/{ → Source}/Scheduler/Scheduler.cs
  192. +34 −34 Library/{ → Source}/Scheduler/TimeOfDayScheduler.cs
  193. +48 −48 Library/{ → Source}/SmartConverter/EnumConverter.cs
  194. +39 −39 Library/{ → Source}/SmartConverter/IStringConverter.cs
  195. +132 −129 Library/{ → Source}/SmartConverter/ObjectConverter.cs
  196. +257 −257 Library/{ → Source}/SmartConverter/StringConverter.cs
  197. +44 −44 Library/{ → Source}/StringExtensions.cs
  198. 0 Library/{ → Source}/TypedWeakReference.cs
  199. +191 −192 Library/Vici.Core.PCL.csproj
  200. +196 −195 Library/Vici.Core.csproj
  201. +0 −54 Test/Package.appxmanifest
  202. +86 −0 Test/Tests/SafeDictionaryTest.cs
  203. +0 −170 Test/Vici.Core.Metro.Test.csproj
  204. BIN Test/Vici.Core.Metro.Test/Images/UnitTestLogo.png
  205. BIN Test/Vici.Core.Metro.Test/Images/UnitTestSmallLogo.png
  206. BIN Test/Vici.Core.Metro.Test/Images/UnitTestSplashScreen.png
  207. BIN Test/Vici.Core.Metro.Test/Images/UnitTestStoreLogo.png
  208. +0 −54 Test/Vici.Core.Metro.Test/Package.appxmanifest
  209. +0 −28 Test/Vici.Core.Metro.Test/Properties/AssemblyInfo.cs
  210. +0 −145 Test/Vici.Core.Metro.Test/Vici.Core.Metro.Test.csproj
  211. BIN Test/Vici.Core.Metro.Test/Vici.Core.Metro.Test_TemporaryKey.pfx
  212. BIN Test/Vici.Core.Metro.Test_TemporaryKey.pfx
  213. +1 −0 Test/Vici.Core.Test.csproj
View
@@ -1,58 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Vici.Core
-{
- public class EasyDictionary<TK,TV> : Dictionary<TK,TV>
- {
- private bool _returnDefaultIfNotExists = true;
-
- public EasyDictionary()
- {
- }
-
- public EasyDictionary(IEqualityComparer<TK> comparer) : base(comparer)
- {
- }
-
- public new TV this[TK key]
- {
- get
- {
- if (!ReturnDefaultIfNotExists)
- return base[key];
-
- if (ContainsKey(key))
- return base[key];
-
- return DefaultValue;
- }
- set
- {
- base[key] = value;
- }
- }
-
- public bool ReturnDefaultIfNotExists
- {
- get { return _returnDefaultIfNotExists; }
- set { _returnDefaultIfNotExists = value; }
- }
-
- public TV DefaultValue { get; set; }
- }
-
- public class EasyStringDictionary<T> : EasyDictionary<string,T>
- {
- public EasyStringDictionary()
- {
- }
-
- public EasyStringDictionary(bool ignoreCase) : base(ignoreCase ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal)
- {
- }
- }
-}
View
@@ -1,55 +0,0 @@
-#region License
-//=============================================================================
-// Vici Core - Productivity Library for .NET 3.5
-//
-// Copyright (c) 2008-2012 Philippe Leybaert
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-// IN THE SOFTWARE.
-//=============================================================================
-#endregion
-
-using System;
-using System.Linq;
-
-namespace Vici.Core.Json
-{
- public partial class JsonParser
- {
- public static JsonObject Parse(string json)
- {
- return new JsonParser().Parse(json);
- }
-
- public static T Parse<T>(string json) where T:class,new()
- {
- return new JsonParser().Parse<T>(json);
- }
-
- public static string Stringify(object obj)
- {
- return JsonSerializer.ToJson(obj);
- }
-
- public static string Stringify(object obj, JsonDateFormat dateFormat)
- {
- return JsonSerializer.ToJson(obj, dateFormat);
- }
-
- }
-}
@@ -1,54 +1,54 @@
-#region License
-//=============================================================================
-// Vici Core - Productivity Library for .NET 3.5
-//
-// Copyright (c) 2008-2012 Philippe Leybaert
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-// IN THE SOFTWARE.
-//=============================================================================
-#endregion
-
-using System;
-using System.IO;
-using System.Linq;
-using System.Runtime.Serialization.Formatters.Binary;
-
-namespace Vici.Core
-{
- public static class Base64Serializer
- {
- public static string Serialize(object obj)
- {
- using (MemoryStream memStream = new MemoryStream())
- {
- new BinaryFormatter().Serialize(memStream, obj);
-
- return Convert.ToBase64String(memStream.ToArray());
- }
- }
-
- public static T Deserialize<T>(string s)
- {
- using (MemoryStream memStream = new MemoryStream(Convert.FromBase64String(s)))
- {
- return (T)new BinaryFormatter().Deserialize(memStream);
- }
- }
- }
+#region License
+//=============================================================================
+// Vici Core - Productivity Library for .NET 3.5
+//
+// Copyright (c) 2008-2012 Philippe Leybaert
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+// IN THE SOFTWARE.
+//=============================================================================
+#endregion
+
+using System;
+using System.IO;
+using System.Linq;
+using System.Runtime.Serialization.Formatters.Binary;
+
+namespace Vici.Core
+{
+ public static class Base64Serializer
+ {
+ public static string Serialize(object obj)
+ {
+ using (MemoryStream memStream = new MemoryStream())
+ {
+ new BinaryFormatter().Serialize(memStream, obj);
+
+ return Convert.ToBase64String(memStream.ToArray());
+ }
+ }
+
+ public static T Deserialize<T>(string s)
+ {
+ using (MemoryStream memStream = new MemoryStream(Convert.FromBase64String(s)))
+ {
+ return (T)new BinaryFormatter().Deserialize(memStream);
+ }
+ }
+ }
}
@@ -1,63 +1,63 @@
-#region License
-//=============================================================================
-// Vici Core - Productivity Library for .NET 3.5
-//
-// Copyright (c) 2008-2012 Philippe Leybaert
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-// IN THE SOFTWARE.
-//=============================================================================
-#endregion
-
-using System;
-using System.Linq;
-using System.Text;
-
-namespace Vici.Core.BinaryExtensions
-{
- public static class BinaryExtensions
- {
- public static string ToHex(this byte[] bytes, bool upperCase)
- {
- StringBuilder result = new StringBuilder(bytes.Length*2);
-
- for (int i = 0; i < bytes.Length; i++)
- result.Append(bytes[i].ToString(upperCase ? "X2" : "x2"));
-
- return result.ToString();
- }
-
- public static string ToHex(this byte[] bytes)
- {
- return ToHex(bytes, false);
- }
-
- public static byte[] XorWith(this byte[] bytes, byte[] xor)
- {
- byte[] result = new byte[bytes.Length];
-
- for (int i = 0; i < bytes.Length; i++)
- if (i < xor.Length)
- result[i] = (byte) (bytes[i] ^ xor[i]);
- else
- result[i] = bytes[i];
-
- return result;
- }
- }
+#region License
+//=============================================================================
+// Vici Core - Productivity Library for .NET 3.5
+//
+// Copyright (c) 2008-2012 Philippe Leybaert
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+// IN THE SOFTWARE.
+//=============================================================================
+#endregion
+
+using System;
+using System.Linq;
+using System.Text;
+
+namespace Vici.Core.BinaryExtensions
+{
+ public static class BinaryExtensions
+ {
+ public static string ToHex(this byte[] bytes, bool upperCase)
+ {
+ StringBuilder result = new StringBuilder(bytes.Length*2);
+
+ for (int i = 0; i < bytes.Length; i++)
+ result.Append(bytes[i].ToString(upperCase ? "X2" : "x2"));
+
+ return result.ToString();
+ }
+
+ public static string ToHex(this byte[] bytes)
+ {
+ return ToHex(bytes, false);
+ }
+
+ public static byte[] XorWith(this byte[] bytes, byte[] xor)
+ {
+ byte[] result = new byte[bytes.Length];
+
+ for (int i = 0; i < bytes.Length; i++)
+ if (i < xor.Length)
+ result[i] = (byte) (bytes[i] ^ xor[i]);
+ else
+ result[i] = bytes[i];
+
+ return result;
+ }
+ }
}
Oops, something went wrong.

0 comments on commit 953f5ee

Please sign in to comment.