bigloo.foreign.get_property C# (CSharp) Method

get_property() static private method

static private get_property ( String name, String def ) : byte[]
name String
def String
return byte[]
        static byte[] get_property( String  name,
				  String  def )
        {
            String            s= null;

            try {
               s= Environment.GetEnvironmentVariable( name );
            }
            catch (Exception) {
            }

            if (s == null)
               if (def == null)
              return null;
               else
              return getbytes( def );
            else
               return getbytes( s );
        }
foreign