lauromoura pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=600163320bec71fed5611b51f4d28dcc5808f334

commit 600163320bec71fed5611b51f4d28dcc5808f334
Author: Lauro Moura <[email protected]>
Date:   Wed Nov 13 10:05:27 2019 -0300

    csharp: Some missing conversions
    
    Summary:
    Ref T8430
    
    Depends on D10616
    
    Reviewers: brunobelo, segfaultxavi, felipealmeida, YOhoho
    
    Reviewed By: YOhoho
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Maniphest Tasks: T8430
    
    Differential Revision: https://phab.enlightenment.org/D10652
---
 src/bindings/mono/eina_mono/eina_stringshare.cs | 11 +++++++++++
 src/bindings/mono/eina_mono/eina_value.cs       |  4 ++--
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/bindings/mono/eina_mono/eina_stringshare.cs 
b/src/bindings/mono/eina_mono/eina_stringshare.cs
index 698250d111..a6ca53a02c 100644
--- a/src/bindings/mono/eina_mono/eina_stringshare.cs
+++ b/src/bindings/mono/eina_mono/eina_stringshare.cs
@@ -139,6 +139,17 @@ public class Stringshare : IEquatable<Stringshare>, 
IEquatable<string>
         return new Stringshare(s);
     }
 
+    /// <summary>
+    /// Conversion from string to Stringshare.
+    /// <para>Since EFL 1.24.</para>
+    /// </summary>
+    /// <remarks>
+    /// Note that this method can be used to create an instance of this class,
+    /// either via an explicit cast or an implicit convertion.
+    /// <seealso cref="Create(string)"/>
+    /// </remarks>
+    public static Stringshare FromString(string s) => s;
+
     /// <summary>
     /// Check two Stringshare objects for equality.
     /// <para>Since EFL 1.23.</para>
diff --git a/src/bindings/mono/eina_mono/eina_value.cs 
b/src/bindings/mono/eina_mono/eina_value.cs
index f8bfc08d3f..12d43fd990 100644
--- a/src/bindings/mono/eina_mono/eina_value.cs
+++ b/src/bindings/mono/eina_mono/eina_value.cs
@@ -1657,14 +1657,14 @@ public class Value : IDisposable, IComparable<Value>, 
IEquatable<Value>
     /// <summary>Implicit conversion.
     /// <para>Since EFL 1.23.</para>
     /// </summary>
-    public static implicit operator Value(short x) => FromShort(x);
+    public static implicit operator Value(short x) => FromInt16(x);
 
     /// <summary>
     ///   Conversion to a <see cref="Value" /> from a <see cref="short" />
     /// <para>Since EFL 1.23.</para>
     /// </summary>
     /// <param name="x">The <see cref="short" /> to be converted.</param>
-    public static Value FromShort(short x)
+    public static Value FromInt16(short x)
     {
         var v = new Eina.Value(ValueType.Short);
         v.Set(x);

-- 


Reply via email to