C# Client Library
A C# Client Library for the AnalyzeRe REST API
APIType.cs
Go to the documentation of this file.
1 using System.Runtime.Serialization;
2 
3 namespace AnalyzeRe
4 {
6  [DataContract]
7  public abstract class APIType : IAPIType
8  {
14  public virtual T ShallowCopy<T>() where T : IAPIType
15  {
16  APIType copy = (APIType)MemberwiseClone();
17  copy.AfterMembersCloned(this);
18  return (T)(IAPIType)copy;
19  }
20 
37  protected virtual void AfterMembersCloned(APIType originalResource) { }
38  }
39 }
virtual void AfterMembersCloned(APIType originalResource)
Invoked following construction if the current instance has been created using a member-wise clone of ...
Definition: APIType.cs:37
virtual T ShallowCopy< T >()
Create a shallow copy of this object. ExtensionMethods.DeepCopy<T>for a serializer-based copy method...
Definition: APIType.cs:14
Base class used by all types and resources.
Definition: APIType.cs:7
Interface shared by all object types and resources returned by the Analyze Re server.
Definition: IAPIType.cs:5