Example #1
0
        public SerializableDocumentId(DocumentId documentId)
        {
            if (documentId == null)
            {
                throw new ArgumentNullException(nameof(documentId));
            }

            this.projectId = new SerializableProjectId(documentId.ProjectId);
            this.guid      = documentId.Id;
            this.debugName = documentId.DebugName;
        }
        public SerializableDocumentId(DocumentId documentId)
        {
            if (documentId == null)
            {
                throw new ArgumentNullException(nameof(documentId));
            }

            _projectId = new SerializableProjectId(documentId.ProjectId);
            _guid = documentId.Id;
            _debugName = documentId.DebugName;
        }