csharp: rename ExtensionMethods
authorYeongjong Lee <yj34.lee@samsung.com>
Mon, 6 Jan 2020 10:08:44 +0000 (19:08 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Mon, 6 Jan 2020 21:28:52 +0000 (06:28 +0900)
Summary:
This patch will rename `ExtensionMethods` to `Extensions` that is commonly used
in csharp project.

Depends on D10972

Test Plan: meson build -Dbindings=mono,cxx -Dmono-beta=true

Reviewers: lauromoura, Jaehyun_Cho, felipealmeida

Reviewed By: Jaehyun_Cho, felipealmeida

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10913

src/bin/eolian_mono/eolian/mono/klass.hh
src/bindings/mono/eina_mono/eina_slice.cs
src/tests/efl_mono/Eina.cs
src/tests/efl_mono/EinaTestData.cs
src/tests/efl_mono/StructHelpers.cs

index cc32e82..a9cd53b 100644 (file)
@@ -408,7 +408,7 @@ struct klass
         (lit("#if EFL_BETA\n")
          << "#pragma warning disable CS1591\n" // Disabling warnings as DocFx will hide these classes
          << "public static class " << name_helpers::klass_concrete_name(cls)
-         << "ExtensionMethods {\n"
+         << "Extensions {\n"
          << extension_method_stream.str()
          << "}\n"
          << "#pragma warning restore CS1591\n"
index 912ddea..0b9311e 100644 (file)
@@ -232,7 +232,9 @@ public struct RwSlice : ISliceBase, IEquatable<RwSlice>
 
 }
 
-public static class Eina_SliceUtils
+namespace Eina
+{
+public static class SliceExtensions
 {
     public static byte[] GetBytes(this Eina.ISliceBase slc)
     {
@@ -243,3 +245,4 @@ public static class Eina_SliceUtils
         return mArray;
     }
 }
+}
index 91e9398..bee6216 100644 (file)
@@ -19,6 +19,7 @@ using System.Linq;
 using System.Runtime.InteropServices;
 using System.Runtime.CompilerServices;
 
+using Eina;
 using EinaTestData;
 using static EinaTestData.BaseData;
 
index 9727548..411e38d 100644 (file)
@@ -18,6 +18,7 @@ using System.Linq;
 using System.Runtime.InteropServices;
 using System.Runtime.CompilerServices;
 using System.Diagnostics.Contracts;
+using Eina;
 
 namespace EinaTestData
 {
index 781dbc1..9c9f750 100644 (file)
@@ -17,6 +17,7 @@ using System;
 using System.Linq;
 using System.Runtime.InteropServices;
 
+using Eina;
 using static EinaTestData.BaseData;
 
 namespace TestSuite