GetParameter() public method

public GetParameter ( string key ) : string
key string
return string
示例#1
0
        public override void Process(LinkContext context)
        {
            ProductAssembly = (Profile.Current as BaseProfile).ProductAssembly;

            base.Process (context);

            PreserveDictionaryConstructor ();
            PreserveQueryableEnumerable ();

            if (context.GetParameter ("debug-build") == "True")
                PreserveDebugFeatures ();
        }
        public override void Process(LinkContext context)
        {
            DebugBuild = context.GetParameter ("debug-build") == "True";

            base.Process (context);

            if (list.Count > 0)
                throw new AggregateException (list);

            if (!serialization_required) {
            #if DEBUG
                Console.WriteLine ("{0} serialization constructors were removed because no SerializationInfo is created", pending_serialization_constructors.Count);
            #endif
                pending_serialization_constructors.Clear ();
            }
        }
 public override void Initialize(LinkContext context)
 {
     base.Initialize (context);
     debug_build = context.GetParameter ("debug-build") == "True";
 }