コード例 #1
0
    public KernelConfigModel Clone()
    {
        // NOTE: We need to use deep clone
        KernelConfigModel clone = new KernelConfigModel();

        clone.comms    = comms.Clone();
        clone.profiles = profiles.Clone();
        clone.features = features.Clone();
        return(clone);
    }
コード例 #2
0
    public KernelConfigModel Clone()
    {
        // NOTE: We need to use deep clone
        KernelConfigModel clone = new KernelConfigModel();

        clone.comms            = comms.Clone();
        clone.profiles         = profiles.Clone();
        clone.features         = features.Clone();
        clone.gifSupported     = gifSupported;
        clone.tld              = tld;
        clone.validWorldRanges = new List <WorldRange>(validWorldRanges);
        return(clone);
    }