Browse Source

Rename extension classes.

pull/96/head
Halil İbrahim Kalkan 9 years ago
parent
commit
c82625e874
  1. BIN
      src/AbpDesk/Web_PlugIns/AbpDesk.MongoBlog.dll
  2. 2
      src/Volo.Abp/System/AbpComparableExtensions.cs
  3. 4
      src/Volo.Abp/System/AbpDayOfWeekExtensions.cs
  4. 2
      src/Volo.Abp/System/AbpEventHandlerExtensions.cs
  5. 2
      src/Volo.Abp/System/AbpExceptionExtensions.cs
  6. 2
      src/Volo.Abp/System/AbpObjectExtensions.cs
  7. 2
      src/Volo.Abp/System/AbpStringExtensions.cs
  8. 2
      src/Volo.Abp/System/AbpTypeExtensions.cs
  9. 2
      src/Volo.Abp/System/Collections/Generic/AbpCollectionExtensions.cs
  10. 2
      src/Volo.Abp/System/Collections/Generic/AbpDictionaryExtensions.cs
  11. 2
      src/Volo.Abp/System/Collections/Generic/AbpEnumerableExtensions.cs
  12. 2
      src/Volo.Abp/System/Collections/Generic/AbpListExtensions.cs
  13. 2
      src/Volo.Abp/System/Globalization/AbpCultureHelper.cs
  14. 2
      src/Volo.Abp/System/IO/AbpStreamExtensions.cs
  15. 6
      test/Volo.Abp.Tests/Volo/ExtensionMethods/StringExtensions_Tests.cs

BIN
src/AbpDesk/Web_PlugIns/AbpDesk.MongoBlog.dll

Binary file not shown.

2
src/Volo.Abp/System/ComparableExtensions.cs → src/Volo.Abp/System/AbpComparableExtensions.cs

@ -5,7 +5,7 @@ namespace Volo.ExtensionMethods
/// <summary>
/// Extension methods for <see cref="IComparable{T}"/>.
/// </summary>
public static class ComparableExtensions
public static class AbpComparableExtensions
{
/// <summary>
/// Checks a value is between a minimum and maximum value.

4
src/Volo.Abp/System/DayOfWeekExtensions.cs → src/Volo.Abp/System/AbpDayOfWeekExtensions.cs

@ -3,9 +3,9 @@
namespace Volo.ExtensionMethods
{
/// <summary>
/// Extension methods for <see cref="DayOfWeekExtensions"/>.
/// Extension methods for <see cref="AbpDayOfWeekExtensions"/>.
/// </summary>
public static class DayOfWeekExtensions
public static class AbpDayOfWeekExtensions
{
/// <summary>
/// Check if given <see cref="DayOfWeek"/> value is weekend.

2
src/Volo.Abp/System/EventHandlerExtensions.cs → src/Volo.Abp/System/AbpEventHandlerExtensions.cs

@ -5,7 +5,7 @@ namespace Volo.ExtensionMethods
/// <summary>
/// Extension methods for <see cref="EventHandler"/>.
/// </summary>
public static class EventHandlerExtensions
public static class AbpEventHandlerExtensions
{
/// <summary>
/// Raises given event safely with given arguments.

2
src/Volo.Abp/System/ExceptionExtensions.cs → src/Volo.Abp/System/AbpExceptionExtensions.cs

@ -6,7 +6,7 @@ namespace Volo.ExtensionMethods
/// <summary>
/// Extension methods for <see cref="Exception"/> class.
/// </summary>
public static class ExceptionExtensions
public static class AbpExceptionExtensions
{
/// <summary>
/// Uses <see cref="ExceptionDispatchInfo.Capture"/> method to re-throws exception

2
src/Volo.Abp/System/ObjectExtensions.cs → src/Volo.Abp/System/AbpObjectExtensions.cs

@ -7,7 +7,7 @@ namespace Volo.ExtensionMethods
/// <summary>
/// Extension methods for all objects.
/// </summary>
public static class ObjectExtensions
public static class AbpObjectExtensions
{
/// <summary>
/// Used to simplify and beautify casting an object to a type.

2
src/Volo.Abp/System/StringExtensions.cs → src/Volo.Abp/System/AbpStringExtensions.cs

@ -9,7 +9,7 @@ namespace Volo.ExtensionMethods
/// <summary>
/// Extension methods for String class.
/// </summary>
public static class StringExtensions
public static class AbpStringExtensions
{
/// <summary>
/// Adds a char to end of given string if it does not ends with the char.

2
src/Volo.Abp/System/TypeExtensions.cs → 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)
{

2
src/Volo.Abp/System/Collections/Generic/CollectionExtensions.cs → src/Volo.Abp/System/Collections/Generic/AbpCollectionExtensions.cs

@ -8,7 +8,7 @@ namespace Volo.ExtensionMethods.Collections.Generic
/// <summary>
/// Extension methods for Collections.
/// </summary>
public static class CollectionExtensions
public static class AbpCollectionExtensions
{
/// <summary>
/// Checks whatever given collection object is null or has no item.

2
src/Volo.Abp/System/Collections/Generic/DictionaryExtensions.cs → src/Volo.Abp/System/Collections/Generic/AbpDictionaryExtensions.cs

@ -6,7 +6,7 @@ namespace Volo.ExtensionMethods.Collections.Generic
/// <summary>
/// Extension methods for Dictionary.
/// </summary>
public static class DictionaryExtensions
public static class AbpDictionaryExtensions
{
/// <summary>
/// This method is used to try to get a value in a dictionary if it does exists.

2
src/Volo.Abp/System/Collections/Generic/EnumerableExtensions.cs → src/Volo.Abp/System/Collections/Generic/AbpEnumerableExtensions.cs

@ -7,7 +7,7 @@ namespace Volo.ExtensionMethods.Collections.Generic
/// <summary>
/// Extension methods for <see cref="IEnumerable{T}"/>.
/// </summary>
public static class EnumerableExtensions
public static class AbpEnumerableExtensions
{
/// <summary>
/// Concatenates the members of a constructed <see cref="IEnumerable{T}"/> collection of type System.String, using the specified separator between each member.

2
src/Volo.Abp/System/Collections/Generic/ListExtensions.cs → src/Volo.Abp/System/Collections/Generic/AbpListExtensions.cs

@ -8,7 +8,7 @@ namespace Volo.ExtensionMethods.Collections.Generic
/// <summary>
/// Extension methods for <see cref="IList{T}"/>.
/// </summary>
public static class ListExtensions
public static class AbpListExtensions
{
public static void MoveItem<T>(this List<T> source, Predicate<T> selector, int targetIndex)
{

2
src/Volo.Abp/System/Globalization/CultureHelper.cs → 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)
{

2
src/Volo.Abp/System/IO/StreamExtensions.cs → 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)
{

6
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");
}

Loading…
Cancel
Save