|
| 1 | + |
| 2 | +<h1>RSCG nr 253 : FastCloner</h1> |
| 3 | + |
| 4 | +<h2>Info</h2> |
| 5 | +Nuget : <a href="https://www.nuget.org/packages/FastCloner/" target="_blank">https://www.nuget.org/packages/FastCloner/</a> |
| 6 | + |
| 7 | +<p>You can find more details at : <a href="https://github.com/lofcz/FastCloner/" target="_blank"> https://github.com/lofcz/FastCloner/</a></p> |
| 8 | + |
| 9 | +<p>Author :Matěj Štágl</p> |
| 10 | + |
| 11 | +<p>Source: <a href="https://github.com/lofcz/FastCloner/" target="_blank">https://github.com/lofcz/FastCloner/</a> </p> |
| 12 | + |
| 13 | +<h2>About</h2> |
| 14 | + |
| 15 | +Cloning objects |
| 16 | + |
| 17 | +<h2> |
| 18 | + How to use |
| 19 | +</h2> |
| 20 | +<h3> |
| 21 | + Add reference to the <a href="https://www.nuget.org/packages/FastCloner/" target="_blank">FastCloner</a> in the csproj |
| 22 | +</h3> |
| 23 | +<img src="images/FastCloner/CloneData.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/FastCloner/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/FastCloner/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 ClonableAttribute.g.cs |
| 42 | + <br /> |
| 43 | + <img src="images/FastCloner/generated/ClonableAttribute.g.cs.png" width="580" height="580" /> |
| 44 | + |
| 45 | + <br /> |
| 46 | + The file <i>generated</i> is CloneIgnoreAttribute.g.cs |
| 47 | + <br /> |
| 48 | + <img src="images/FastCloner/generated/CloneIgnoreAttribute.g.cs.png" width="580" height="580" /> |
| 49 | + |
| 50 | + <br /> |
| 51 | + The file <i>generated</i> is IClonable.g.cs |
| 52 | + <br /> |
| 53 | + <img src="images/FastCloner/generated/IClonable.g.cs.png" width="580" height="580" /> |
| 54 | + |
| 55 | + <br /> |
| 56 | + The file <i>generated</i> is Person.g.cs |
| 57 | + <br /> |
| 58 | + <img src="images/FastCloner/generated/Person.g.cs.png" width="580" height="580" /> |
| 59 | + |
| 60 | + <br /> |
| 61 | + The file <i>generated</i> is CloneData_Person_FastDeepClone.g.cs |
| 62 | + <br /> |
| 63 | + <img src="images/FastCloner/generated/CloneData_Person_FastDeepClone.g.cs.png" width="580" height="580" /> |
| 64 | + |
| 65 | +<p> |
| 66 | + You can download the code and this page as pdf from |
| 67 | + <a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/FastCloner'> |
| 68 | + https://ignatandrei.github.io/RSCG_Examples/v2/docs/FastCloner |
| 69 | + </a> |
| 70 | +</p> |
| 71 | + |
| 72 | + |
| 73 | +<p> |
| 74 | + You can see the whole list at |
| 75 | + <a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'> |
| 76 | + https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG |
| 77 | + </a> |
| 78 | +</p> |
| 79 | + |
0 commit comments