internal static ObjectElement CreateObject(TranslatableElement fieldName, string className) { return(new ObjectElement { Type = Types.Object, Name = fieldName, ClassName = className }); }
internal ObjectElement ExploreObject(TranslatableElement fieldName, object obj) { // Create the element then replace its Name var element = ExploreObject("", obj); element.Name = fieldName; return(element); }
internal static ObjectElement CreateField(TranslatableElement fieldName, string className, object value) { return(new ObjectElement { Type = Types.Field, Name = fieldName, ClassName = className, Value = value }); }
internal static ObjectElement CreateException(TranslatableElement message, string className, string[] stackTrace) { System.Diagnostics.Debug.Assert(stackTrace != null, "Argument 'stackTrace' is not specified"); return(new ObjectElement { Type = Types.Exception, StackTrace = stackTrace, Value = message, ClassName = className }); }
public SerializableTranslatable(TranslatableElement translatable) { Key = translatable.TextKey; if (translatable.Parameters != null) { Parameters = new SerializablePrimitive[translatable.Parameters.Length]; for (int i = 0; i < Parameters.Length; ++i) { Parameters[i] = new SerializablePrimitive(translatable.Parameters[i]); } } }
public Manager AddData(TranslatableElement key, object value) { System.Diagnostics.Debug.Assert(Tree != null, "The property 'Tree' is not supposed to be null"); // Insert a new field right before the exception list var explorer = new ObjectExplorer(); var element = explorer.ExploreObject(key, value); Tree.Children.Insert(GetFirstExceptionIndex(), element); return(this); }
public TranslatableElement CreateTranslatableElement() { var translatable = new TranslatableElement { TextKey = Key }; if (Parameters != null) { var parameters = new object[Parameters.Length]; for (int i = 0; i < Parameters.Length; ++i) { parameters[i] = Parameters[i].Value; } translatable.Parameters = parameters; } return(translatable); }
public TranslatableElement CreateTranslatableElement() { var translatable = new TranslatableElement{ TextKey = Key }; if( Parameters != null ) { var parameters = new object[ Parameters.Length ]; for( int i=0; i<Parameters.Length; ++i ) parameters[ i ] = Parameters[ i ].Value; translatable.Parameters = parameters; } return translatable; }
public SerializableTranslatable(TranslatableElement translatable) { Key = translatable.TextKey; if( translatable.Parameters != null ) { Parameters = new SerializablePrimitive[ translatable.Parameters.Length ]; for( int i=0; i<Parameters.Length; ++i ) Parameters[ i ] = new SerializablePrimitive( translatable.Parameters[i] ); } }
internal ObjectElement ExploreObject(TranslatableElement fieldName, object obj) { // Create the element then replace its Name var element = ExploreObject( "", obj ); element.Name = fieldName; return element; }
public BaseException(TranslatableElement message) : base(message.TextKey) { Init( message ); }
internal static ObjectElement CreateField(TranslatableElement fieldName, string className, object value) { return new ObjectElement { Type = Types.Field, Name = fieldName, ClassName = className, Value = value }; }
public BaseException(TranslatableElement message) : base(message.TextKey) { Init(message); }
public BaseException(TranslatableElement message, Exception innerException) : base(message.TextKey, innerException) { Init( message ); }
public BaseException(TranslatableElement message, Exception innerException) : base(message.TextKey, innerException) { Init(message); }
internal static ObjectElement CreateException(TranslatableElement message, string className, string[] stackTrace) { System.Diagnostics.Debug.Assert( stackTrace != null, "Argument 'stackTrace' is not specified" ); return new ObjectElement { Type = Types.Exception, StackTrace = stackTrace, Value = message, ClassName = className }; }
private void Init(TranslatableElement message) { ObjectData = new Dictionary <string, object>(); TranslatableMessage = message; }
internal static ObjectElement CreateObject(TranslatableElement fieldName, string className) { return new ObjectElement { Type = Types.Object, Name = fieldName, ClassName = className }; }
private void Init(TranslatableElement message) { ObjectData = new Dictionary<string,object>(); TranslatableMessage = message; }