in messages/csharp/src/Deltix.Timebase.Messages/EPAM.Deltix.Timebase.Messages.Schema/NamedDescriptor.cs [244:296]
protected virtual IRecordInterface CopyFromImpl(IRecordInfo source)
{
if (typeof(INamedDescriptorInfo).IsInstanceOfType(source))
{
INamedDescriptorInfo typedSource = ((INamedDescriptorInfo)(source));
if ((typedSource.Name != null))
{
if ((this.Name == null))
{
this.Name = new com.epam.deltix.containers.MutableString(typedSource.Name);
}
else
{
this.Name.Assign(typedSource.Name);
}
}
else
{
this.Name = null;
}
if ((typedSource.Title != null))
{
if ((this.Title == null))
{
this.Title = new com.epam.deltix.containers.MutableString(typedSource.Title);
}
else
{
this.Title.Assign(typedSource.Title);
}
}
else
{
this.Title = null;
}
if ((typedSource.Description != null))
{
if ((this.Description == null))
{
this.Description = new com.epam.deltix.containers.MutableString(typedSource.Description);
}
else
{
this.Description.Assign(typedSource.Description);
}
}
else
{
this.Description = null;
}
}
return this;
}