|
| 1 | + |
| 2 | +<h1>RSCG nr 245 : Monify</h1> |
| 3 | + |
| 4 | +<h2>Info</h2> |
| 5 | +Nuget : <a href="https://www.nuget.org/packages/Monify/" target="_blank">https://www.nuget.org/packages/Monify/</a> |
| 6 | + |
| 7 | +<p>You can find more details at : <a href="https://github.com/MooVC/monify" target="_blank"> https://github.com/MooVC/monify</a></p> |
| 8 | + |
| 9 | +<p>Author :Paul Martin</p> |
| 10 | + |
| 11 | +<p>Source: <a href="https://github.com/MooVC/monify" target="_blank">https://github.com/MooVC/monify</a> </p> |
| 12 | + |
| 13 | +<h2>About</h2> |
| 14 | + |
| 15 | +Generate primitive strongly typed wrapper around a single value object |
| 16 | + |
| 17 | +<h2> |
| 18 | + How to use |
| 19 | +</h2> |
| 20 | +<h3> |
| 21 | + Add reference to the <a href="https://www.nuget.org/packages/Monify/" target="_blank">Monify</a> in the csproj |
| 22 | +</h3> |
| 23 | +<img src="images/Monify/PrimitiveDemo.csproj.png" width="580" height="580" /> |
| 24 | + |
| 25 | +<h3>This was for me the <b>starting</b> code</h3> |
| 26 | + |
| 27 | + <br /> |
| 28 | + I have <b>coded</b> the file Program.cs |
| 29 | + <br /> |
| 30 | + <img src="images/Monify/csFiles/Program.cs.png" width="580" height="580" /> |
| 31 | + <hr /> |
| 32 | + |
| 33 | + <br /> |
| 34 | + I have <b>coded</b> the file Person.cs |
| 35 | + <br /> |
| 36 | + <img src="images/Monify/csFiles/Person.cs.png" width="580" height="580" /> |
| 37 | + <hr /> |
| 38 | + <h3>And here are the <i>generated</i> files</h3> |
| 39 | + |
| 40 | + <br /> |
| 41 | + The file <i>generated</i> is MonifyAttribute.Generic.g.cs |
| 42 | + <br /> |
| 43 | + <img src="images/Monify/generated/MonifyAttribute.Generic.g.cs.png" width="580" height="580" /> |
| 44 | + |
| 45 | + <br /> |
| 46 | + The file <i>generated</i> is MonifyAttribute.NonGeneric.g.cs |
| 47 | + <br /> |
| 48 | + <img src="images/Monify/generated/MonifyAttribute.NonGeneric.g.cs.png" width="580" height="580" /> |
| 49 | + |
| 50 | + <br /> |
| 51 | + The file <i>generated</i> is Monify.Internal.HashCode.g.cs |
| 52 | + <br /> |
| 53 | + <img src="images/Monify/generated/Monify.Internal.HashCode.g.cs.png" width="580" height="580" /> |
| 54 | + |
| 55 | + <br /> |
| 56 | + The file <i>generated</i> is Monify.Internal.SequenceEqualityComparer.g.cs |
| 57 | + <br /> |
| 58 | + <img src="images/Monify/generated/Monify.Internal.SequenceEqualityComparer.g.cs.png" width="580" height="580" /> |
| 59 | + |
| 60 | + <br /> |
| 61 | + The file <i>generated</i> is PrimitiveDemo.Age.ConvertFrom.g.cs |
| 62 | + <br /> |
| 63 | + <img src="images/Monify/generated/PrimitiveDemo.Age.ConvertFrom.g.cs.png" width="580" height="580" /> |
| 64 | + |
| 65 | + <br /> |
| 66 | + The file <i>generated</i> is PrimitiveDemo.Age.ConvertTo.g.cs |
| 67 | + <br /> |
| 68 | + <img src="images/Monify/generated/PrimitiveDemo.Age.ConvertTo.g.cs.png" width="580" height="580" /> |
| 69 | + |
| 70 | + <br /> |
| 71 | + The file <i>generated</i> is PrimitiveDemo.Age.ctor.g.cs |
| 72 | + <br /> |
| 73 | + <img src="images/Monify/generated/PrimitiveDemo.Age.ctor.g.cs.png" width="580" height="580" /> |
| 74 | + |
| 75 | + <br /> |
| 76 | + The file <i>generated</i> is PrimitiveDemo.Age.Equality.Self.g.cs |
| 77 | + <br /> |
| 78 | + <img src="images/Monify/generated/PrimitiveDemo.Age.Equality.Self.g.cs.png" width="580" height="580" /> |
| 79 | + |
| 80 | + <br /> |
| 81 | + The file <i>generated</i> is PrimitiveDemo.Age.Equality.Value.g.cs |
| 82 | + <br /> |
| 83 | + <img src="images/Monify/generated/PrimitiveDemo.Age.Equality.Value.g.cs.png" width="580" height="580" /> |
| 84 | + |
| 85 | + <br /> |
| 86 | + The file <i>generated</i> is PrimitiveDemo.Age.Equals.g.cs |
| 87 | + <br /> |
| 88 | + <img src="images/Monify/generated/PrimitiveDemo.Age.Equals.g.cs.png" width="580" height="580" /> |
| 89 | + |
| 90 | + <br /> |
| 91 | + The file <i>generated</i> is PrimitiveDemo.Age.GetHashCode.g.cs |
| 92 | + <br /> |
| 93 | + <img src="images/Monify/generated/PrimitiveDemo.Age.GetHashCode.g.cs.png" width="580" height="580" /> |
| 94 | + |
| 95 | + <br /> |
| 96 | + The file <i>generated</i> is PrimitiveDemo.Age.IEquatable.Self.Equals.g.cs |
| 97 | + <br /> |
| 98 | + <img src="images/Monify/generated/PrimitiveDemo.Age.IEquatable.Self.Equals.g.cs.png" width="580" height="580" /> |
| 99 | + |
| 100 | + <br /> |
| 101 | + The file <i>generated</i> is PrimitiveDemo.Age.IEquatable.Self.g.cs |
| 102 | + <br /> |
| 103 | + <img src="images/Monify/generated/PrimitiveDemo.Age.IEquatable.Self.g.cs.png" width="580" height="580" /> |
| 104 | + |
| 105 | + <br /> |
| 106 | + The file <i>generated</i> is PrimitiveDemo.Age.IEquatable.Value.Equals.g.cs |
| 107 | + <br /> |
| 108 | + <img src="images/Monify/generated/PrimitiveDemo.Age.IEquatable.Value.Equals.g.cs.png" width="580" height="580" /> |
| 109 | + |
| 110 | + <br /> |
| 111 | + The file <i>generated</i> is PrimitiveDemo.Age.IEquatable.Value.g.cs |
| 112 | + <br /> |
| 113 | + <img src="images/Monify/generated/PrimitiveDemo.Age.IEquatable.Value.g.cs.png" width="580" height="580" /> |
| 114 | + |
| 115 | + <br /> |
| 116 | + The file <i>generated</i> is PrimitiveDemo.Age.Inequality.Self.g.cs |
| 117 | + <br /> |
| 118 | + <img src="images/Monify/generated/PrimitiveDemo.Age.Inequality.Self.g.cs.png" width="580" height="580" /> |
| 119 | + |
| 120 | + <br /> |
| 121 | + The file <i>generated</i> is PrimitiveDemo.Age.Inequality.Value.g.cs |
| 122 | + <br /> |
| 123 | + <img src="images/Monify/generated/PrimitiveDemo.Age.Inequality.Value.g.cs.png" width="580" height="580" /> |
| 124 | + |
| 125 | + <br /> |
| 126 | + The file <i>generated</i> is PrimitiveDemo.Age.ToString.g.cs |
| 127 | + <br /> |
| 128 | + <img src="images/Monify/generated/PrimitiveDemo.Age.ToString.g.cs.png" width="580" height="580" /> |
| 129 | + |
| 130 | + <br /> |
| 131 | + The file <i>generated</i> is PrimitiveDemo.Age._value.g.cs |
| 132 | + <br /> |
| 133 | + <img src="images/Monify/generated/PrimitiveDemo.Age._value.g.cs.png" width="580" height="580" /> |
| 134 | + |
| 135 | +<p> |
| 136 | + You can download the code and this page as pdf from |
| 137 | + <a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/Monify'> |
| 138 | + https://ignatandrei.github.io/RSCG_Examples/v2/docs/Monify |
| 139 | + </a> |
| 140 | +</p> |
| 141 | + |
| 142 | + |
| 143 | +<p> |
| 144 | + You can see the whole list at |
| 145 | + <a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'> |
| 146 | + https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG |
| 147 | + </a> |
| 148 | +</p> |
| 149 | + |
0 commit comments