Skip to content

Commit

Permalink
IGXUndefined -> IGXUnassigned
Browse files Browse the repository at this point in the history
  • Loading branch information
dmendez committed Mar 4, 2022
1 parent 55c8bde commit 703dbdf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,9 @@ private bool isUndefinedOutParam(string key, Object SdtObj) {

if (!DynAjaxEventContext.isInputParm(key))
{
if (SdtObj is IGXUndefined parm)
if (SdtObj is IGXUnassigned parm)
{
return parm.IsUndefined;
return parm.IsUnassigned;
}
}
return false;
Expand Down
6 changes: 3 additions & 3 deletions dotnet/src/dotnetframework/GxClasses/Domain/GxCollections.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1030,14 +1030,14 @@ public string Name

[Serializable]
[XmlType(IncludeInSchema = false)]
public class GxUserType : IGxXMLSerializable, ICloneable, IGxJSONAble, IGxJSONSerializable, IGXUndefined
public class GxUserType : IGxXMLSerializable, ICloneable, IGxJSONAble, IGxJSONSerializable, IGXUnassigned
{
static readonly ILog log = log4net.LogManager.GetLogger(typeof(GeneXus.Utils.GxUserType));
protected GXProperties dirties = new GXProperties();

static object setupChannelObject = null;
static bool setupChannelInitialized;
public bool IsUndefined { get; set; }
public bool IsUnassigned { get; set; }

static void loadConfigurator()
{
Expand Down Expand Up @@ -1086,7 +1086,7 @@ JObject JsonObj

public GxUserType()
{
IsUndefined = false;
IsUnassigned = false;
}

public virtual void SetDirty(string fieldName)
Expand Down
20 changes: 10 additions & 10 deletions dotnet/src/dotnetframework/GxClasses/Domain/GxGenericCollections.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@

namespace GeneXus.Utils
{
internal interface IGXUndefined
internal interface IGXUnassigned
{
bool IsUndefined { get; set; }
bool IsUnassigned { get; set; }
}

public class GXBaseList<T> : IGXUndefined, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection, IList
public class GXBaseList<T> : IGXUnassigned, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection, IList
{

List<T> m_list = new List<T>();

public GXBaseList()
{
IsUndefined = false;
IsUnassigned = false;
}

public T this[int index] { get => ((IList<T>)m_list)[index]; set => ((IList<T>)m_list)[index] = value; }

public bool IsUndefined { get; set; }
public bool IsUnassigned { get; set; }

public void AddRange(IEnumerable<T> collection) {
m_list.AddRange(collection);
Expand All @@ -48,13 +48,13 @@ public void AddRange(IEnumerable<T> collection) {
public void Add(T item)
{
((ICollection<T>)m_list).Add(item);
IsUndefined = false;
IsUnassigned = false;
}

public void Clear()
{
((ICollection<T>)m_list).Clear();
IsUndefined = false;
IsUnassigned = false;
}

public bool Contains(T item)
Expand Down Expand Up @@ -84,13 +84,13 @@ public void Insert(int index, T item)

public bool Remove(T item)
{
IsUndefined = false;
IsUnassigned = false;
return ((ICollection<T>)m_list).Remove(item);
}

public void RemoveAt(int index)
{
IsUndefined = false;
IsUnassigned = false;
((IList<T>)m_list).RemoveAt(index);
}

Expand Down Expand Up @@ -135,7 +135,7 @@ public void Insert(int index, object value)

public void Remove(object value)
{
IsUndefined = false;
IsUnassigned = false;
((IList)m_list).Remove(value);
}
}
Expand Down
4 changes: 2 additions & 2 deletions dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -685,9 +685,9 @@ public void initializeOutParms() {
{
object TypedValue = getFieldValue(targetObj, parmName);
DynAjaxEventContext.SetParmHash(parmName, TypedValue);
if (!DynAjaxEventContext.isInputParm(parmName) && TypedValue is IGXUndefined param)
if (!DynAjaxEventContext.isInputParm(parmName) && TypedValue is IGXUnassigned param)
{
param.IsUndefined = true;
param.IsUnassigned = true;
}
}
}
Expand Down

0 comments on commit 703dbdf

Please sign in to comment.