Пример #1
0
 /// <summary>
 /// Create a PythonInterpreterView with values from a PythonInterpreter.
 /// </summary>
 public PythonInterpreterView(PythonInterpreter interpreter)
 {
     _name    = null;
     _id      = interpreter.Id;
     _version = Version.Parse(interpreter.Version);
     _path    = null;
 }
Пример #2
0
        internal PythonInterpreter Clone()
        {
            var res = new PythonInterpreter();

            res.Id = Id;
            return(res);
        }
Пример #3
0
 internal static bool IsSame(PythonInterpreter self, PythonInterpreter other)
 {
     if (self == null)
     {
         return(other == null);
     }
     else if (other != null)
     {
         return(self.Id == other.Id);
     }
     return(false);
 }
Пример #4
0
 /// <summary>
 /// Create a PythonInterpreterView with values from a PythonInterpreter.
 /// </summary>
 public PythonInterpreterView(PythonInterpreter interpreter) {
     _name = null;
     _id = interpreter.Id;
     _version = Version.Parse(interpreter.Version);
     _path = null;
 }
Пример #5
0
 internal static bool IsSame(PythonInterpreter self, PythonInterpreter other) {
     if (self == null) {
         return other == null;
     } else if (other != null) {
         return self.Id == other.Id &&
             self.Version == other.Version;
     }
     return false;
 }
Пример #6
0
        internal PythonInterpreter Clone() {
            var res = new PythonInterpreter();

            res.Id = Id;
            res.Version = Version;
            return res;
        }
Пример #7
0
 /// <summary>
 /// Create a PythonInterpreterView with values from a PythonInterpreter.
 /// </summary>
 public PythonInterpreterView(PythonInterpreter interpreter) {
     _name = null;
     _id = interpreter.Id;
     _path = null;
 }
Пример #8
0
 /// <summary>
 /// Create a PythonInterpreterView with values from a PythonInterpreter.
 /// </summary>
 public PythonInterpreterView(PythonInterpreter interpreter)
 {
     _name = null;
     _id   = interpreter.Id;
     _path = null;
 }