コード例 #1
0
 public bool IsImmutable()
 {
     return(IsPrimitive() || Platform4.IsSimple(_type));
 }
コード例 #2
0
 internal static ICLIFacade NewInstance()
 {
     return(Platform4.IsMono() ? (ICLIFacade) new Mono40() : new CLR40());
 }
コード例 #3
0
 public virtual object NullValue(IReflectClass clazz)
 {
     return(Platform4.NullValue(ToNative(clazz)));
 }
コード例 #4
0
 public virtual object NewWeakReference(ObjectReference referent, object obj)
 {
     return(Platform4.CreateActiveObjectReference(_queue, referent, obj));
 }
コード例 #5
0
 public virtual void Purge()
 {
     Platform4.PollReferenceQueue(_container, _queue);
 }
コード例 #6
0
 public static string Now()
 {
     return(Platform4.Format(Platform4.Now(), true));
 }
コード例 #7
0
 internal EnabledWeakReferenceSupport(ObjectContainerBase container)
 {
     _container = container;
     _queue     = Platform4.CreateReferenceQueue();
 }
コード例 #8
0
 public override void Write(object a_object, ByteArrayBuffer a_bytes)
 {
     a_bytes.WriteLong(Platform4.DoubleToLong(((double)a_object)));
 }
コード例 #9
0
        public override object Read(IReadContext context)
        {
            long l = (long)base.Read(context);

            return(Platform4.LongToDouble(l));
        }
コード例 #10
0
 private IReflectClass IntegerClassReflector()
 {
     return(ReflectorFor(Platform4.NullableTypeFor(typeof(int))));
 }
コード例 #11
0
 protected virtual Type JavaClass()
 {
     return(Platform4.NullableTypeFor(PrimitiveJavaClass()));
 }
コード例 #12
0
 private static void RegisterPrimitive(Type primitive)
 {
     Primitives.Put(ReflectPlatform.FullyQualifiedName(Platform4.NullableTypeFor(primitive
                                                                                 )), primitive);
 }
コード例 #13
0
 public virtual Msg ReplyFromServer()
 {
     Platform4.ThrowUncheckedException((Exception)ReadSingleObject());
     return(null);
 }
コード例 #14
0
ファイル: SelfClass.cs プロジェクト: pondyond/db4o
 public virtual bool IsImmutable()
 {
     return(IsPrimitive() || Platform4.IsSimple(_class));
 }
コード例 #15
0
 private object EmptyValue()
 {
     return(Platform4.ReflectorForType(typeof(DateTime)).ForClass(typeof(DateTime)).NullValue
                ());
 }
コード例 #16
0
 public override void Write(IWriteContext context, object obj)
 {
     context.WriteLong(Platform4.DoubleToLong(((double)obj)));
 }
コード例 #17
0
 public virtual bool IsConnected()
 {
     return(Platform4.IsConnected(_socket));
 }
コード例 #18
0
 private Db4objects.Db4o.Reflect.Generic.GenericReflector GenericReflector()
 {
     return(new Db4objects.Db4o.Reflect.Generic.GenericReflector(null, Platform4.ReflectorForType
                                                                     (GetType())));
 }