View Issue Details

IDProjectCategoryView StatusLast Update
0002386NoesisGUIUnitypublic2022-07-27 16:47
ReporterFeldruebe Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Product Version3.1.5 
Target Version3.1.6Fixed in Version3.1.6 
Summary0002386: Argument Exception when using ref property
Description

If you add a property to your view model that uses the ref keyword an argument exception happens.

Steps To Reproduce

Modify the ButtonsSample as followed:

public class ButtonsViewModel : MonoBehaviour
{
void Start()
{
NoesisView view = GetComponent<NoesisView>();
view.Content.DataContext = this;
}

private string[] _Names;
public ref string[] Names => ref _Names;

}

Start the Application.

PlatformAny

Activities

sfernandez

sfernandez

2022-07-27 16:47

manager   ~0008034

The patch that fixes the issue can be found below:


Index: Extend.cs

--- Extend.cs (revision 11519)
+++ Extend.cs (revision 11520)
@@ -1636,7 +1636,7 @@
for (int i = 0; i < propsLen; ++i)
{
var p = props[i];

  • if (p.GetGetMethod() != null && !p.PropertyType.IsPointer &&
  • if (p.GetGetMethod() != null && !p.PropertyType.IsPointer && !p.PropertyType.IsByRef &&
    (HasTypeConverter(p) || (!IsIndexerProperty(p) && !IsDependencyProperty(type, p))))
    {
    ExtendPropertyData propData = AddProperty(propsInfo, p, usePropertyInfo);

Issue History

Date Modified Username Field Change
2022-07-26 11:00 Feldruebe New Issue
2022-07-26 14:12 sfernandez Assigned To => sfernandez
2022-07-26 14:12 sfernandez Status new => assigned
2022-07-26 14:12 sfernandez Target Version => 3.1.6
2022-07-27 16:47 sfernandez Status assigned => resolved
2022-07-27 16:47 sfernandez Resolution open => fixed
2022-07-27 16:47 sfernandez Fixed in Version => 3.1.6
2022-07-27 16:47 sfernandez Note Added: 0008034
2025-10-10 13:29 jsantos Category Unity3D => Unity