c# clone object shallow vs deep copy in 4 min

preview_player
Показать описание
c# clone object shallow vs deep copy in 4 min
Рекомендации по теме
Комментарии
Автор

Thank you. For easy copy paste for others:
public static T Clone<T>(T obj)
{
using (var stream = new MemoryStream())
{
var formatter = new BinaryFormatter();
formatter.Serialize(stream, obj);
stream.Position = 0;
return
};
}

DanMV
Автор

Thank you Gaur. It was helpful.May Allah (God) guide and bless you.

ibknl