示例#1
0
        public ConnectableLayer(Layer layer)
        {
            Contract.Requires(layer != null);

            Layer = layer;

            UpperLayers = new LayerLinkCollection(this, LinkType.Upper);
            LowerLayers = new LayerLinkCollection(this, LinkType.Lower);
        }
示例#2
0
        internal ConnectedLayer(int index, Layer layer, NNStructuralElement structuralElementFlags)
        {
            Contract.Requires(layer != null);
            Contract.Requires(index >= 0);

            Index = index;
            Layer = layer;
            StructuralElementFlags = structuralElementFlags;
        }