cloneDescriptor

Clones descriptors and it's properties using reflection. Reflection is needed to make an exact copy.

Return

Copied descriptor or the same reference if copying not needed.

Parameters

descriptor