Comments (7)
Thanks for reporting! We will try to work on this for the next release.
If you want, you can help out by either creating a PR (even if it's only the unit test, we can do the other implementations) or by considering supporting the open collective.
from catel.fody.
How should I name commit ? I did 2 files named GH0361 in respected folders with
namespace Catel.Fody.Tests.Repros
{
using System;
using NUnit.Framework;
[TestFixture]
public class GH0361TestFixture
{
[TestCase]
public void WeavingWithSetValueMethodInViewModel()
{
var viewModelType = AssemblyWeaver.Instance.Assembly.GetType("Catel.Fody.TestAssembly.Bugs.GH0361.MyDerivedViewModel");
var viewModel = Activator.CreateInstance(viewModelType) as dynamic;
viewModel.Property = new object();
}
}
}
and
namespace Catel.Fody.TestAssembly.Bugs.GH0361
{
using Catel.MVVM;
public class MyDerivedViewModel : ViewModelBase
{
[Model]
public TestModel Model { get; set; }
[ViewModelToModel]
public object Property { get; set; }
public void SetValue(string s)
{
}
}
public class TestModel
{
public object Property { get; set; }
}
}
code
from catel.fody.
To create a pull request, you would have to create a fork (right top button in GitHub). Then I personally prefer to create a separate branch (e.g. pr/setvalue-fix) and feel free to name the commits whatever feels right.
Once the PR is in place, we can commit to it as well and finalize the feature.
from catel.fody.
I did only Unit test
from catel.fody.
That's perfect. If you can create the fork + branch + unit test, we can implement the fix. We will merge once it's fully complete.
from catel.fody.
A good commit name could be: "Add unit test for SetValue override selection issue"
from catel.fody.
Closing as this is now fixed.
from catel.fody.
Related Issues (20)
- Support migration of RaisePropertyChanged(() => MyProperty) to RaisePropertyChanged(nameof(MyProperty)) HOT 3
- Generate error in case Argument expressions are used inside Catel HOT 2
- Weave calculated property notifications as if-else-if, not consecutive ifs HOT 6
- Allow visibility of generated properties to be customized HOT 1
- CatelFodyNullException with IEquatable implemented in another assembly HOT 6
- Catel.Fody doesn't weave the virtual properties correctly HOT 4
- Catel.Fody Fails to weave properties that are referenced across multiple projects HOT 2
- Object reference not set to an instance of an object HOT 9
- Part 2 of Object Reference not set to an instance of an object. HOT 2
- Optimize display classes for async methods containing argument expressions HOT 1
- Support property & change callback weaving on ObservableObject as well HOT 3
- ObservableObject setters should check for equality before assigning HOT 1
- Update needed to support future fody versions HOT 3
- Can you guide me how to use Crypto Obfuscator For .Net for obfuscated encryption? Before Costura.Fody works ? HOT 4
- StackOverflowException in OnPropertyChangedWeaver for indexer properties HOT 3
- Can anyone please help me how to use Costura.Fody to package LevelDB.Standard ? HOT 2
- Reference to ExposeAttribute not found. HOT 7
- Init only properties are not being weaved HOT 1
- BadImageFormatException with Expose - weaver cannot resolve type of property HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from catel.fody.