SetValues() public method

public SetValues ( object items ) : void
items object
return void
Exemplo n.º 1
0
        public static RubyStruct /*!*/ InitializeCopy(RubyStruct /*!*/ self, [NotNull] RubyStruct /*!*/ source)
        {
            if (self.Class != source.Class)
            {
                throw RubyExceptions.CreateTypeError("wrong argument class");
            }

            self.SetValues(source.Values);
            return(self);
        }
Exemplo n.º 2
0
        public static RubyStruct /*!*/ InitializeCopy(RubyStruct /*!*/ self, [NotNull] RubyStruct /*!*/ source)
        {
            // TODO: compare non-singleton classes?
            if (self.ImmediateClass.GetNonSingletonClass() != source.ImmediateClass.GetNonSingletonClass())
            {
                throw RubyExceptions.CreateTypeError("wrong argument class");
            }

            self.SetValues(source.Values);
            return(self);
        }
Exemplo n.º 3
0
        public static RubyStruct/*!*/ InitializeCopy(RubyStruct/*!*/ self, [NotNull]RubyStruct/*!*/ source) {
            // TODO: compare non-singleton classes?
            if (self.ImmediateClass.GetNonSingletonClass() != source.ImmediateClass.GetNonSingletonClass()) {
                throw RubyExceptions.CreateTypeError("wrong argument class");
            }

            self.SetValues(source.Values);
            return self;
        }
Exemplo n.º 4
0
 public static void Reinitialize(RubyStruct/*!*/ self, params object[]/*!*/ items) {
     self.SetValues(items);
 }
Exemplo n.º 5
0
        public static RubyStruct/*!*/ InitializeCopy(RubyStruct/*!*/ self, [NotNull]RubyStruct/*!*/ source) {
            if (self.Class != source.Class) {
                throw RubyExceptions.CreateTypeError("wrong argument class");
            }

            self.SetValues(source.Values);
            return self;
        }
Exemplo n.º 6
0
 public static void Reinitialize(RubyStruct /*!*/ self, [NotNull] params object[] /*!*/ items)
 {
     self.SetValues(items);
 }