예제 #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;
 }