From c82625e87495754284c442a89cb59b804f82966b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Tue, 29 Aug 2017 10:20:40 +0300 Subject: [PATCH] Rename extension classes. --- src/AbpDesk/Web_PlugIns/AbpDesk.MongoBlog.dll | Bin 15872 -> 15872 bytes ...tensions.cs => AbpComparableExtensions.cs} | 2 +- ...xtensions.cs => AbpDayOfWeekExtensions.cs} | 4 ++-- ...nsions.cs => AbpEventHandlerExtensions.cs} | 2 +- ...xtensions.cs => AbpExceptionExtensions.cs} | 2 +- ...ctExtensions.cs => AbpObjectExtensions.cs} | 2 +- ...ngExtensions.cs => AbpStringExtensions.cs} | 2 +- ...TypeExtensions.cs => AbpTypeExtensions.cs} | 2 +- ...tensions.cs => AbpCollectionExtensions.cs} | 2 +- ...tensions.cs => AbpDictionaryExtensions.cs} | 2 +- ...tensions.cs => AbpEnumerableExtensions.cs} | 2 +- ...ListExtensions.cs => AbpListExtensions.cs} | 2 +- .../{CultureHelper.cs => AbpCultureHelper.cs} | 2 +- ...amExtensions.cs => AbpStreamExtensions.cs} | 2 +- .../StringExtensions_Tests.cs | 6 +++--- 15 files changed, 17 insertions(+), 17 deletions(-) rename src/Volo.Abp/System/{ComparableExtensions.cs => AbpComparableExtensions.cs} (93%) rename src/Volo.Abp/System/{DayOfWeekExtensions.cs => AbpDayOfWeekExtensions.cs} (85%) rename src/Volo.Abp/System/{EventHandlerExtensions.cs => AbpEventHandlerExtensions.cs} (96%) rename src/Volo.Abp/System/{ExceptionExtensions.cs => AbpExceptionExtensions.cs} (92%) rename src/Volo.Abp/System/{ObjectExtensions.cs => AbpObjectExtensions.cs} (97%) rename src/Volo.Abp/System/{StringExtensions.cs => AbpStringExtensions.cs} (99%) rename src/Volo.Abp/System/{TypeExtensions.cs => AbpTypeExtensions.cs} (81%) rename src/Volo.Abp/System/Collections/Generic/{CollectionExtensions.cs => AbpCollectionExtensions.cs} (96%) rename src/Volo.Abp/System/Collections/Generic/{DictionaryExtensions.cs => AbpDictionaryExtensions.cs} (98%) rename src/Volo.Abp/System/Collections/Generic/{EnumerableExtensions.cs => AbpEnumerableExtensions.cs} (98%) rename src/Volo.Abp/System/Collections/Generic/{ListExtensions.cs => AbpListExtensions.cs} (98%) rename src/Volo.Abp/System/Globalization/{CultureHelper.cs => AbpCultureHelper.cs} (96%) rename src/Volo.Abp/System/IO/{StreamExtensions.cs => AbpStreamExtensions.cs} (88%) diff --git a/src/AbpDesk/Web_PlugIns/AbpDesk.MongoBlog.dll b/src/AbpDesk/Web_PlugIns/AbpDesk.MongoBlog.dll index 8eeb6eab290e083b8dcbb7210800b49ed0ee851b..f7ed13b4ce2cc4755828b76ed0e9acfa5df472b9 100644 GIT binary patch delta 864 zcmZuwZAcVB7=GW`b7%K%cXr*ayFApq&hF5POS1DUL+wi=O2i_Kpy)?+*oS0Al%WMu zP)asLMF<8_Mt`b}I4FrA#fsqi(Fa9JC_zC)^rH_AnmvpDGy~5(&-3!WGrTj?(bmy+ z`h=%G`T9=Jsa%ZrT-$(S95I@eXaGp?>iAsVgi);EN3k6P9Eq(D7Xlzm4aEtOI(c5L z0T6E3w>P=>W6fo;qFR)I*wDFv&ySfW3?5 zq8}nOSJX|xTC`vWU+v8+Uu2AX{qWvbsmuaRb8FrbT!t@7ng-!WhL5u}&4(IoM9znk zs=LcUb%0;;M(rW}m)Iw!?GPEgii=tNjkn0Y%x(+*l0KD-;fmUg#qf;>e0hl(`U=q< zcbd>BO~_q9K+32MY(gFoO3A1NLOlWx_%ezxzS9>$i*sK)KIXP|Va`YP9x0TB-F`k) zzcLdjEXt@M^_<=)DX{cU>@t6;eG*qRs8{FM;wBJIdR@H1{-Mcdvam9laf&5g!2Em* zD@2obvR0A$gT?F!s{;+1=_Z&4Pt@J;09WwEMo~$%F$rJrGo@I9M12iNKF|QFgc%Wm z7AwOLN$JaQ6~;YvSO|0ZStCZ!;6p|gO|y?~nCoVqepA=TGf`TGqoj|QnPGcOr{n@j zvBN}zF6EfOPtGngiS!%m70;*Nd7GVsOO9!74~PqY#(C2CA8+(OUWzZU%X8N00Dbb* zvyBN}OQ-mLr_+Atld8A2INN4kl^iYnT{2e=Zf=_Y?0nV5u4KVzPDQ^nEn3R5TEu^7 o;cFJ2v3%?P9s^*u%L{r!ehfHDoDhd4eo7=!>SR}Z#-91~H&AM{3jhEB delta 859 zcmZuwZAcVB7=GW`YiIX%cXqw)G%r88Rus+9tMjWb`!FhkMC{0-AN?!S3M?YZI1Qq} zimoZD9|!rPBBCNT!K{8nW<&`_h0%8uMM790lzq>hMSq%sXP)PIdEXh{nQ3cnYdyHv z*L^;?FR?ERrzOs;z!w~`U|h5wppwrkFXk(;04sSr#?j_TY@;_10AXzS+%Tz?r`DJN zPW_ga#*J$?dx5(lfG?8pV)f9Q17HcySrl7RBi09QQqj=9ZyZ1w_CS+ghOIsiuktHu zq|7k`ut{>v5Nubfl>oG|vq}gaO4UjZoPg(Y09Mf+7J#d2P~_CX01dz>5BoFh^(+h1 zA)jW6y4|o00}$j({n=F&<{N)Hyw<9f$)M_9%?pCd@JSh>I`pu}`tSPGlq%4+($bFSI+^CBX-2zgz^T)B{)qBRoUPt_&IrMR&Yu zL4)*7-VX$%lv>Wd$=8HZQmRy_+u#E&rG6Q_S<6S0b1jayxUC^} z6&NO6#sXY|<-S_XgF=49EFnJ`?=$Dpem3NVxnX4+=MA0Q6QyNnCrMsmIrd9~lH;U{ z?I1erS9S>;ayM9wNJm&wJfD;9v$RZ{9oM}c5D)&0V&gxp kbot*S0EGF+vWaNBdO0D9QlHBzze*$;b<<`IW1^J)21X#YWB>pF diff --git a/src/Volo.Abp/System/ComparableExtensions.cs b/src/Volo.Abp/System/AbpComparableExtensions.cs similarity index 93% rename from src/Volo.Abp/System/ComparableExtensions.cs rename to src/Volo.Abp/System/AbpComparableExtensions.cs index f16904047a..c708231b97 100644 --- a/src/Volo.Abp/System/ComparableExtensions.cs +++ b/src/Volo.Abp/System/AbpComparableExtensions.cs @@ -5,7 +5,7 @@ namespace Volo.ExtensionMethods /// /// Extension methods for . /// - public static class ComparableExtensions + public static class AbpComparableExtensions { /// /// Checks a value is between a minimum and maximum value. diff --git a/src/Volo.Abp/System/DayOfWeekExtensions.cs b/src/Volo.Abp/System/AbpDayOfWeekExtensions.cs similarity index 85% rename from src/Volo.Abp/System/DayOfWeekExtensions.cs rename to src/Volo.Abp/System/AbpDayOfWeekExtensions.cs index 9bf633bcdc..ee954ea67d 100644 --- a/src/Volo.Abp/System/DayOfWeekExtensions.cs +++ b/src/Volo.Abp/System/AbpDayOfWeekExtensions.cs @@ -3,9 +3,9 @@ namespace Volo.ExtensionMethods { /// - /// Extension methods for . + /// Extension methods for . /// - public static class DayOfWeekExtensions + public static class AbpDayOfWeekExtensions { /// /// Check if given value is weekend. diff --git a/src/Volo.Abp/System/EventHandlerExtensions.cs b/src/Volo.Abp/System/AbpEventHandlerExtensions.cs similarity index 96% rename from src/Volo.Abp/System/EventHandlerExtensions.cs rename to src/Volo.Abp/System/AbpEventHandlerExtensions.cs index e0247d68ea..459c405d7a 100644 --- a/src/Volo.Abp/System/EventHandlerExtensions.cs +++ b/src/Volo.Abp/System/AbpEventHandlerExtensions.cs @@ -5,7 +5,7 @@ namespace Volo.ExtensionMethods /// /// Extension methods for . /// - public static class EventHandlerExtensions + public static class AbpEventHandlerExtensions { /// /// Raises given event safely with given arguments. diff --git a/src/Volo.Abp/System/ExceptionExtensions.cs b/src/Volo.Abp/System/AbpExceptionExtensions.cs similarity index 92% rename from src/Volo.Abp/System/ExceptionExtensions.cs rename to src/Volo.Abp/System/AbpExceptionExtensions.cs index e7ba296b41..be677b91da 100644 --- a/src/Volo.Abp/System/ExceptionExtensions.cs +++ b/src/Volo.Abp/System/AbpExceptionExtensions.cs @@ -6,7 +6,7 @@ namespace Volo.ExtensionMethods /// /// Extension methods for class. /// - public static class ExceptionExtensions + public static class AbpExceptionExtensions { /// /// Uses method to re-throws exception diff --git a/src/Volo.Abp/System/ObjectExtensions.cs b/src/Volo.Abp/System/AbpObjectExtensions.cs similarity index 97% rename from src/Volo.Abp/System/ObjectExtensions.cs rename to src/Volo.Abp/System/AbpObjectExtensions.cs index 3b8190bb6b..80e16e25c6 100644 --- a/src/Volo.Abp/System/ObjectExtensions.cs +++ b/src/Volo.Abp/System/AbpObjectExtensions.cs @@ -7,7 +7,7 @@ namespace Volo.ExtensionMethods /// /// Extension methods for all objects. /// - public static class ObjectExtensions + public static class AbpObjectExtensions { /// /// Used to simplify and beautify casting an object to a type. diff --git a/src/Volo.Abp/System/StringExtensions.cs b/src/Volo.Abp/System/AbpStringExtensions.cs similarity index 99% rename from src/Volo.Abp/System/StringExtensions.cs rename to src/Volo.Abp/System/AbpStringExtensions.cs index a2878fbf0d..b960ee218a 100644 --- a/src/Volo.Abp/System/StringExtensions.cs +++ b/src/Volo.Abp/System/AbpStringExtensions.cs @@ -9,7 +9,7 @@ namespace Volo.ExtensionMethods /// /// Extension methods for String class. /// - public static class StringExtensions + public static class AbpStringExtensions { /// /// Adds a char to end of given string if it does not ends with the char. diff --git a/src/Volo.Abp/System/TypeExtensions.cs b/src/Volo.Abp/System/AbpTypeExtensions.cs similarity index 81% rename from src/Volo.Abp/System/TypeExtensions.cs rename to src/Volo.Abp/System/AbpTypeExtensions.cs index f24dfb562b..4440bfb9cf 100644 --- a/src/Volo.Abp/System/TypeExtensions.cs +++ b/src/Volo.Abp/System/AbpTypeExtensions.cs @@ -2,7 +2,7 @@ namespace System { - public static class TypeExtensions + public static class AbpTypeExtensions { public static Assembly GetAssembly(this Type type) { diff --git a/src/Volo.Abp/System/Collections/Generic/CollectionExtensions.cs b/src/Volo.Abp/System/Collections/Generic/AbpCollectionExtensions.cs similarity index 96% rename from src/Volo.Abp/System/Collections/Generic/CollectionExtensions.cs rename to src/Volo.Abp/System/Collections/Generic/AbpCollectionExtensions.cs index db560d1b06..66693d266c 100644 --- a/src/Volo.Abp/System/Collections/Generic/CollectionExtensions.cs +++ b/src/Volo.Abp/System/Collections/Generic/AbpCollectionExtensions.cs @@ -8,7 +8,7 @@ namespace Volo.ExtensionMethods.Collections.Generic /// /// Extension methods for Collections. /// - public static class CollectionExtensions + public static class AbpCollectionExtensions { /// /// Checks whatever given collection object is null or has no item. diff --git a/src/Volo.Abp/System/Collections/Generic/DictionaryExtensions.cs b/src/Volo.Abp/System/Collections/Generic/AbpDictionaryExtensions.cs similarity index 98% rename from src/Volo.Abp/System/Collections/Generic/DictionaryExtensions.cs rename to src/Volo.Abp/System/Collections/Generic/AbpDictionaryExtensions.cs index 37727402b7..48c78a2f38 100644 --- a/src/Volo.Abp/System/Collections/Generic/DictionaryExtensions.cs +++ b/src/Volo.Abp/System/Collections/Generic/AbpDictionaryExtensions.cs @@ -6,7 +6,7 @@ namespace Volo.ExtensionMethods.Collections.Generic /// /// Extension methods for Dictionary. /// - public static class DictionaryExtensions + public static class AbpDictionaryExtensions { /// /// This method is used to try to get a value in a dictionary if it does exists. diff --git a/src/Volo.Abp/System/Collections/Generic/EnumerableExtensions.cs b/src/Volo.Abp/System/Collections/Generic/AbpEnumerableExtensions.cs similarity index 98% rename from src/Volo.Abp/System/Collections/Generic/EnumerableExtensions.cs rename to src/Volo.Abp/System/Collections/Generic/AbpEnumerableExtensions.cs index 01f67130c9..edee9c15d4 100644 --- a/src/Volo.Abp/System/Collections/Generic/EnumerableExtensions.cs +++ b/src/Volo.Abp/System/Collections/Generic/AbpEnumerableExtensions.cs @@ -7,7 +7,7 @@ namespace Volo.ExtensionMethods.Collections.Generic /// /// Extension methods for . /// - public static class EnumerableExtensions + public static class AbpEnumerableExtensions { /// /// Concatenates the members of a constructed collection of type System.String, using the specified separator between each member. diff --git a/src/Volo.Abp/System/Collections/Generic/ListExtensions.cs b/src/Volo.Abp/System/Collections/Generic/AbpListExtensions.cs similarity index 98% rename from src/Volo.Abp/System/Collections/Generic/ListExtensions.cs rename to src/Volo.Abp/System/Collections/Generic/AbpListExtensions.cs index b2db839574..9dbbf0496d 100644 --- a/src/Volo.Abp/System/Collections/Generic/ListExtensions.cs +++ b/src/Volo.Abp/System/Collections/Generic/AbpListExtensions.cs @@ -8,7 +8,7 @@ namespace Volo.ExtensionMethods.Collections.Generic /// /// Extension methods for . /// - public static class ListExtensions + public static class AbpListExtensions { public static void MoveItem(this List source, Predicate selector, int targetIndex) { diff --git a/src/Volo.Abp/System/Globalization/CultureHelper.cs b/src/Volo.Abp/System/Globalization/AbpCultureHelper.cs similarity index 96% rename from src/Volo.Abp/System/Globalization/CultureHelper.cs rename to src/Volo.Abp/System/Globalization/AbpCultureHelper.cs index 8f7e3be667..c42e0e2091 100644 --- a/src/Volo.Abp/System/Globalization/CultureHelper.cs +++ b/src/Volo.Abp/System/Globalization/AbpCultureHelper.cs @@ -4,7 +4,7 @@ using Volo.Abp; namespace System.Globalization { - public static class CultureHelper + public static class AbpCultureHelper { public static IDisposable Use([NotNull] string culture, string uiCulture = null) { diff --git a/src/Volo.Abp/System/IO/StreamExtensions.cs b/src/Volo.Abp/System/IO/AbpStreamExtensions.cs similarity index 88% rename from src/Volo.Abp/System/IO/StreamExtensions.cs rename to src/Volo.Abp/System/IO/AbpStreamExtensions.cs index 96df44a41c..e8f05cece9 100644 --- a/src/Volo.Abp/System/IO/StreamExtensions.cs +++ b/src/Volo.Abp/System/IO/AbpStreamExtensions.cs @@ -2,7 +2,7 @@ namespace Volo.ExtensionMethods { - public static class StreamExtensions + public static class AbpStreamExtensions { public static byte[] GetAllBytes(this Stream stream) { diff --git a/test/Volo.Abp.Tests/Volo/ExtensionMethods/StringExtensions_Tests.cs b/test/Volo.Abp.Tests/Volo/ExtensionMethods/StringExtensions_Tests.cs index 41788436fd..6d0b740a7a 100644 --- a/test/Volo.Abp.Tests/Volo/ExtensionMethods/StringExtensions_Tests.cs +++ b/test/Volo.Abp.Tests/Volo/ExtensionMethods/StringExtensions_Tests.cs @@ -11,7 +11,7 @@ namespace Volo.ExtensionMethods public StringExtensions_Tests() { - _cultureScope = CultureHelper.Use("en-US"); + _cultureScope = AbpCultureHelper.Use("en-US"); } [Fact] @@ -31,7 +31,7 @@ namespace Volo.ExtensionMethods [Fact] public void EnsureEndsWith_CultureSpecific_Test() { - using (CultureHelper.Use("tr-TR")) + using (AbpCultureHelper.Use("tr-TR")) { "Kırmızı".EnsureEndsWith('I', StringComparison.CurrentCultureIgnoreCase).ShouldBe("Kırmızı"); } @@ -59,7 +59,7 @@ namespace Volo.ExtensionMethods [Fact] public void ToPascalCase_CurrentCulture_Test() { - using (CultureHelper.Use("tr-TR")) + using (AbpCultureHelper.Use("tr-TR")) { "istanbul".ToPascalCase(true).ShouldBe("İstanbul"); }