Fody
PropertyChanged
Fody | PropertyChanged | |
---|---|---|
12 | 14 | |
4,237 | 1,831 | |
0.5% | 0.7% | |
8.7 | 8.5 | |
18 days ago | 10 days ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Fody
-
Metalama.Compiler VS Fody - a user suggested alternative
2 projects | 7 Dec 2023
While Fody works at binary (MSIL) level, Metalama Compiler is a fork of Roslyn and allows for AST transformations, at the C# level.
-
Metalama VS Fody - a user suggested alternative
2 projects | 7 Dec 2023
-
C# Equivalent of Python Decorators
As an alternative to PostSharp you may take a look at Fody.
-
What does Realm.Fody do?
Working with IL weaving as part of the building process is quite complex though, and this is where Fody enters into the picture. Fody is an extensible tool that allows to simplify the weaving process by taking care of all the heavy lifting.
- Automated logging
-
Code generator like plop.js for dotnet
Fodyplugins can modify exists code during compilation.
-
What do think is the most advanced C# concept that most developers will never get?
I've seen coworkers using Fody for such MSIL weaving stuff, but I have a bad feeling about this. It's a little bit like jailbreaking your phone. Cool stuff ahead, but voids warranty.
-
EntityFramework installed in customers' GAC causing bugs in our software
Implement your own (in C++/outside dotnet/CLR) IHostAssemblyManager stuff, this is the "replace/bypass how assemblies are loaded" trick. There used to be a prebuilt thing on the old old codepages, but I can't find it. I wonder if newer code/assemblie weavers such as Fody can do the similar thing?
- Coding classes be like
-
Debugging hard to track transform changes. Can I pick your brains on tool design approach?
Great place to start is https://github.com/Fody/Fody and existing 'addins' - fody does it at compile time - generally quite useful for your own code if you want to dip into aspect oriented programming.
PropertyChanged
-
Window Forms change notification
Add [AddINotifyPropertyChangedInterface] attribute to the class for change notification.
-
What does Realm.Fody do?
All the weaving libraries (also called weavers or addin) using Fody need to have the .Fody suffix, so it's quite easy to recognize them. As an example, if you ever had to implement INotifyPropertyChanged manually in a class with dozens of properties you would probably welcome weaving (and Fody) with open arms. By creating all the plumbing code directly in IL, libraries like PropertyChanged.Fody allows to inject the necessary notification code without the need to modify anything in the original source code.
-
[Library] Call all IEnumerable<T> via a single injected T
You can rewrite auto-props (as used this this lib https://github.com/Fody/PropertyChanged) with Fody.
-
Double programming meme
If you're not familiar with Fody and specifically the PropertyChanged weaver, I highly recommend checking it out: https://github.com/Fody/PropertyChanged
-
Is it just me, or is WPF just harder to work with than WinForms?
Now the ugly part - you need to implement INotifyPropertyChanged. It can be done either manually, or automated with this or this
-
What can be done to make the switch from WinForms to WPF easier?
https://github.com/Fody/PropertyChanged and Android background makes WPF pretty easy. At least the surface level stuff.
-
Automated nameof(Field)
If you really don't want to deal with it ever again, just add this Fody - PropertyChanged NuGet package. Any class that inherits from INotifyPropertyChanged will be updated at compile time to inject in the boilerplate code for handling the property change and you never even need to think about it again. All you need to do is just add plain old properties. The only downside that some people see is that it is not immediately transparent as the change notification code is injected in during compile and is not in source code.
-
We Just Gave $154,999.89 to Open Source Maintainers
And GitHub is the place where employees of billion dollar companies pester unpaid maintainers because they won’t support a 12 year old version of .NET
https://github.com/Fody/PropertyChanged/issues/270#issuecomm...
-
Can anyone give me an example of how they use fody to simplify the Get;Set; with property changed?
If you need more info, check the docs https://github.com/Fody/PropertyChanged
What are some alternatives?
Mono.Cecil - Cecil is a library to inspect, modify and create .NET programs and libraries.
Prism - Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Xamarin Forms, and Uno / Win UI Applications..
Aspect Injector - AOP framework for .NET (c#, vb, etc)
ReactiveUI.Fody - C# Fody extension to generate RaisePropertyChange notifications for properties and ObservableAsPropertyHelper properties.
dnSpy
PropertyChanged.SourceGenerator - Powerful INotifyPropertyChanged / INotifyPropertyChanging Source Generator, which generates INPC boilerplate for you as part of your build. Supports features such as automatic and manual dependencies between properties, notifications when specific properties change, and more.
ILRepack - Open-source alternative to ILMerge
sentry-symfony - The official Symfony SDK for Sentry (sentry.io)
NConcern - NConcern .NET AOP Framework
sentry-javascript - Official Sentry SDKs for JavaScript
Harmony - A library for patching, replacing and decorating .NET and Mono methods during runtime
UWP Community Toolkit - The Windows Community Toolkit is a collection of helpers, extensions, and custom controls. It simplifies and demonstrates common developer tasks building .NET apps with UWP and the Windows App SDK / WinUI 3 for Windows 10 and Windows 11. The toolkit is part of the .NET Foundation.