コード例 #1
0
        public IEditorNavigationType CreateEditorNavigationType(EditorNavigationTypeDefinition definition, string type, IEnumerable <IEditorNavigationType> baseTypes)
        {
            var navigationType = new EditorNavigationType(definition, type, baseTypes);

            _navigationTypes.Add(type, navigationType);
            return(navigationType);
        }
        IEditorNavigationType IEditorNavigationTypeRegistryService.CreateEditorNavigationType(EditorNavigationTypeDefinition definition, string type, IEnumerable<IEditorNavigationType> baseTypes)
        {
            Contract.Requires<ArgumentNullException>(definition != null);
            Contract.Requires<ArgumentNullException>(type != null);
            Contract.Ensures(Contract.Result<IEditorNavigationType>() != null);

            throw new NotImplementedException();
        }
コード例 #3
0
        public IEditorNavigationType CreateEditorNavigationType([NotNull] EditorNavigationTypeDefinition definition, [NotNull] string type, IEnumerable <IEditorNavigationType> baseTypes)
        {
            Requires.NotNull(definition, nameof(definition));
            Requires.NotNull(type, nameof(type));

            var navigationType = new EditorNavigationType(definition, type, baseTypes);

            _navigationTypes.Add(type, navigationType);
            return(navigationType);
        }
コード例 #4
0
        public EditorNavigationType(EditorNavigationTypeDefinition definition, string type, IEnumerable<IEditorNavigationType> baseTypes)
        {
            if (type == null)
                throw new ArgumentNullException();

            baseTypes = baseTypes ?? EmptyNavigationTypes;
            if (baseTypes.Contains(null))
                throw new ArgumentException();
            if (baseTypes.Any(b => b.IsOfType(type)))
                throw new ArgumentException();

            this.Type = type;
            this.BaseTypes = baseTypes.ToArray();
            this.Definition = definition;
        }
コード例 #5
0
        public EditorNavigationType(EditorNavigationTypeDefinition definition, string type, IEnumerable <IEditorNavigationType> baseTypes)
        {
            if (type == null)
            {
                throw new ArgumentNullException();
            }

            baseTypes = baseTypes ?? EmptyNavigationTypes;
            if (baseTypes.Contains(null))
            {
                throw new ArgumentException();
            }
            if (baseTypes.Any(b => b.IsOfType(type)))
            {
                throw new ArgumentException();
            }

            this.Type       = type;
            this.BaseTypes  = baseTypes.ToArray();
            this.Definition = definition;
        }
 public IEditorNavigationType CreateEditorNavigationType(EditorNavigationTypeDefinition definition, string type, IEnumerable<IEditorNavigationType> baseTypes)
 {
     var navigationType = new EditorNavigationType(definition, type, baseTypes);
     _navigationTypes.Add(type, navigationType);
     return navigationType;
 }
コード例 #7
0
        IEditorNavigationType IEditorNavigationTypeRegistryService.CreateEditorNavigationType(EditorNavigationTypeDefinition definition, string type, IEnumerable <IEditorNavigationType> baseTypes)
        {
            Contract.Requires <ArgumentNullException>(definition != null);
            Contract.Requires <ArgumentNullException>(type != null);
            Contract.Ensures(Contract.Result <IEditorNavigationType>() != null);

            throw new NotImplementedException();
        }