예제 #1
0
        protected internal override void Write(ContentWriter output, T value)
        {
            var typeWriter = output.GetTypeWriter(_underlyingType);

            output.WriteRawObject(Convert.ChangeType(value, _underlyingType), typeWriter);
        }
예제 #2
0
 protected internal override void Write(ContentWriter output, VertexBufferContent value)
 {
     output.WriteRawObject(value.VertexDeclaration);
     output.Write((uint)(value.VertexData.Length / value.VertexDeclaration.VertexStride));
     output.Write(value.VertexData);
 }