Beispiel #1
0
 /// <summary>
 /// Serializes an object into CimInstance
 /// </summary>
 /// <param name="source">The input object to serialize. Serializes to a default depth of 1</param>
 /// <param name="serializationDepth">The input object to serialize. Serializes to a default depth of 1</param>
 /// <returns>The serialized object, as CimInstance</returns>n
 public static CimInstance Serialize(Object source, int serializationDepth)
 {
     MISerializer serializer = new MISerializer(serializationDepth);
     return serializer.Serialize(source);
 }
Beispiel #2
0
        /// <summary>
        /// Serializes an object into CimInstance
        /// </summary>
        /// <param name="source">The input object to serialize. Serializes to a default depth of 1</param>
        /// <param name="serializationDepth">The input object to serialize. Serializes to a default depth of 1</param>
        /// <returns>The serialized object, as CimInstance</returns>n
        public static CimInstance Serialize(Object source, int serializationDepth)
        {
            MISerializer serializer = new MISerializer(serializationDepth);

            return(serializer.Serialize(source));
        }