-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #340 from ignatandrei/valuify
Valuify
- Loading branch information
Showing
55 changed files
with
1,449 additions
and
398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,6 @@ public enum Category | |
SignalR=27, | ||
WinAPI = 28, | ||
Clone=29, | ||
Equals= 30, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
|
||
<h1>RSCG nr 178 : Valuify</h1> | ||
|
||
<h2>Info</h2> | ||
Nuget : <a href="https://www.nuget.org/packages/Valuify/" target="_blank">https://www.nuget.org/packages/Valuify/</a> | ||
|
||
<p>You can find more details at : <a href="https://github.com/MooVC/valuify" target="_blank"> https://github.com/MooVC/valuify</a></p> | ||
|
||
<p>Author :Paul Martins</p> | ||
|
||
<p>Source : <a href="https://github.com/MooVC/valuify" target="_blank">https://github.com/MooVC/valuify</a> </p> | ||
|
||
<h2>About</h2> | ||
|
||
Generating Equals from properties | ||
|
||
<h2> | ||
How to use | ||
</h2> | ||
<h3> | ||
Add reference to the <a href="https://www.nuget.org/packages/Valuify/" target="_blank">Valuify</a> in the csproj | ||
</h3> | ||
<img src="images/Valuify/GeneratorEqualsDemo.csproj.png" width="580" height="580" /> | ||
|
||
<h3>This was for me the <b>starting</b> code</h3> | ||
|
||
<br /> | ||
I have <b>coded</b> the file Program.cs | ||
<br /> | ||
<img src="images/Valuify/csFiles/Program.cs.png" width="580" height="580" /> | ||
<hr /> | ||
|
||
<br /> | ||
I have <b>coded</b> the file Person.cs | ||
<br /> | ||
<img src="images/Valuify/csFiles/Person.cs.png" width="580" height="580" /> | ||
<hr /> | ||
<h3>And here are the <i>generated</i> files</h3> | ||
|
||
<br /> | ||
The file <i>generated</i> is ValuifyAttribute.g.cs | ||
<br /> | ||
<img src="images/Valuify/generated/ValuifyAttribute.g.cs.png" width="580" height="580" /> | ||
|
||
<br /> | ||
The file <i>generated</i> is GeneratorEqualsDemo.Person.Equality.g.cs | ||
<br /> | ||
<img src="images/Valuify/generated/GeneratorEqualsDemo.Person.Equality.g.cs.png" width="580" height="580" /> | ||
|
||
<br /> | ||
The file <i>generated</i> is GeneratorEqualsDemo.Person.Equals.g.cs | ||
<br /> | ||
<img src="images/Valuify/generated/GeneratorEqualsDemo.Person.Equals.g.cs.png" width="580" height="580" /> | ||
|
||
<br /> | ||
The file <i>generated</i> is GeneratorEqualsDemo.Person.GetHashCode.g.cs | ||
<br /> | ||
<img src="images/Valuify/generated/GeneratorEqualsDemo.Person.GetHashCode.g.cs.png" width="580" height="580" /> | ||
|
||
<br /> | ||
The file <i>generated</i> is GeneratorEqualsDemo.Person.IEquatable.Equals.g.cs | ||
<br /> | ||
<img src="images/Valuify/generated/GeneratorEqualsDemo.Person.IEquatable.Equals.g.cs.png" width="580" height="580" /> | ||
|
||
<br /> | ||
The file <i>generated</i> is GeneratorEqualsDemo.Person.IEquatable.g.cs | ||
<br /> | ||
<img src="images/Valuify/generated/GeneratorEqualsDemo.Person.IEquatable.g.cs.png" width="580" height="580" /> | ||
|
||
<br /> | ||
The file <i>generated</i> is GeneratorEqualsDemo.Person.Inequality.g.cs | ||
<br /> | ||
<img src="images/Valuify/generated/GeneratorEqualsDemo.Person.Inequality.g.cs.png" width="580" height="580" /> | ||
|
||
<br /> | ||
The file <i>generated</i> is GeneratorEqualsDemo.Person.ToString.g.cs | ||
<br /> | ||
<img src="images/Valuify/generated/GeneratorEqualsDemo.Person.ToString.g.cs.png" width="580" height="580" /> | ||
|
||
<br /> | ||
The file <i>generated</i> is Valuify.Internal.HashCode.g.cs | ||
<br /> | ||
<img src="images/Valuify/generated/Valuify.Internal.HashCode.g.cs.png" width="580" height="580" /> | ||
|
||
<br /> | ||
The file <i>generated</i> is Valuify.Internal.SequenceEqualityComparer.g.cs | ||
<br /> | ||
<img src="images/Valuify/generated/Valuify.Internal.SequenceEqualityComparer.g.cs.png" width="580" height="580" /> | ||
|
||
<p> | ||
You can download the code and this page as pdf from | ||
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/Valuify'> | ||
https://ignatandrei.github.io/RSCG_Examples/v2/docs/Valuify | ||
</a> | ||
</p> | ||
|
||
|
||
<p> | ||
You can see the whole list at | ||
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'> | ||
https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG | ||
</a> | ||
</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"generator":{ | ||
"name":"Valuify", | ||
"nuget":[ | ||
"https://www.nuget.org/packages/Valuify/" | ||
], | ||
"link":"https://github.com/MooVC/valuify", | ||
"author":"Paul Martins", | ||
"source":"https://github.com/MooVC/valuify" | ||
}, | ||
"data":{ | ||
"goodFor":["Generating Equals from properties"], | ||
"csprojDemo":"GeneratorEqualsDemo.csproj", | ||
"csFiles":["Program.cs","Person.cs"], | ||
"excludeDirectoryGenerated":[""], | ||
"includeAdditionalFiles":[""] | ||
}, | ||
"links":{ | ||
"blog":"", | ||
"video":"" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
A .NET Roslyn source generator that enables record-like behavior for classes in projects using C# versions prior to 9.0. |
Oops, something went wrong.